Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
long-tern-care-service
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hubin
long-tern-care-service
Commits
480eb074
Commit
480eb074
authored
Mar 30, 2023
by
zhangwanglin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分配控制
parent
cb71342b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
14 deletions
+20
-14
AccountServiceImpl.java
...hungraim/ltc/account/service/impl/AccountServiceImpl.java
+15
-13
SrvSendVO.java
...n/java/com/hungraim/ltc/pojo/vo/governance/SrvSendVO.java
+2
-0
SrvSend.xml
.../resources/com/hungraim/ltc/governance/mapper/SrvSend.xml
+3
-1
No files found.
account/account-service/src/main/java/com/hungraim/ltc/account/service/impl/AccountServiceImpl.java
View file @
480eb074
...
@@ -883,18 +883,22 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
...
@@ -883,18 +883,22 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
@Override
@Override
public
Result
placeOtherApply
(
Integer
disabInfoId
,
String
otherApplyTime
)
{
public
Result
placeOtherApply
(
Integer
disabInfoId
,
String
otherApplyTime
)
{
int
result
=
taskDetailMapper
.
placeOtherApply
(
disabInfoId
,
otherApplyTime
);
Result
result1
=
Result
.
success
();
Result
result1
=
Result
.
success
();
if
(
result
>
0
)
{
Date
date
=
DateUtils
.
strToDate
(
otherApplyTime
);
Date
date
=
DateUtils
.
strToDate
(
otherApplyTime
);
boolean
now
=
DateUtils
.
isNow
(
date
);
boolean
now
=
DateUtils
.
isNow
(
date
);
if
(
now
)
{
if
(
now
)
{
result1
=
placeFreeHandler
(
disabInfoId
,
otherApplyTime
);
result1
=
placeFreeHandler
(
disabInfoId
,
otherApplyTime
);
}
}
if
(
result1
.
equals
(
Result
.
success
()))
{
int
result
=
taskDetailMapper
.
placeOtherApply
(
disabInfoId
,
otherApplyTime
);
if
(
result
>
0
)
{
return
result1
;
}
else
{
return
Result
.
failed
(
"申请失败"
);
}
}
return
result1
;
return
result1
;
}
else
{
return
Result
.
failed
(
"申请失败"
);
}
}
}
...
@@ -931,6 +935,11 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
...
@@ -931,6 +935,11 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
chDisabAccounts
.
setDeductionAmountTotal
(
zero
);
chDisabAccounts
.
setDeductionAmountTotal
(
zero
);
disabAccountsMapper
.
insert
(
chDisabAccounts
);
disabAccountsMapper
.
insert
(
chDisabAccounts
);
}
else
{
}
else
{
Short
accountsStatus
=
chDisabAccounts
.
getAccountsStatus
();
if
(
accountsStatus
>
1
){
log
.
info
(
"{},已完成审核"
,
chDisabAccounts
.
getAccountsId
());
return
Result
.
failed
(
"提交月份已完成审核,请联系管理员"
);
}
BigDecimal
allCost1
=
chDisabAccounts
.
getAllCost
();
BigDecimal
allCost1
=
chDisabAccounts
.
getAllCost
();
BigDecimal
overallCost1
=
chDisabAccounts
.
getOverallCost
();
BigDecimal
overallCost1
=
chDisabAccounts
.
getOverallCost
();
allCost1
=
allCost1
.
add
(
limit
);
allCost1
=
allCost1
.
add
(
limit
);
...
@@ -945,13 +954,6 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
...
@@ -945,13 +954,6 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
chDisabDetailAccounts
.
setAccountsId
(
chDisabAccounts
.
getAccountsId
());
chDisabDetailAccounts
.
setAccountsId
(
chDisabAccounts
.
getAccountsId
());
chDisabAccountsDetailMapper
.
insert
(
chDisabDetailAccounts
);
chDisabAccountsDetailMapper
.
insert
(
chDisabDetailAccounts
);
}
else
{
}
else
{
Long
accountsId
=
chDisabDetailAccountsDTO
.
getAccountsId
();
ChDisabAccounts
chDisabAccountDTO
=
disabAccountsMapper
.
selectById
(
accountsId
);
Short
accountsStatus
=
chDisabAccountDTO
.
getAccountsStatus
();
if
(
accountsStatus
>
1
){
log
.
info
(
"{},已完成审核"
,
accountsId
);
Result
.
failed
(
"提交月份已完成审核,请联系管理员"
);;
}
BigDecimal
accountsAllCost
=
chDisabDetailAccountsDTO
.
getAccountsAllCost
();
BigDecimal
accountsAllCost
=
chDisabDetailAccountsDTO
.
getAccountsAllCost
();
BigDecimal
accountsOverallCost
=
chDisabDetailAccountsDTO
.
getAccountsOverallCost
();
BigDecimal
accountsOverallCost
=
chDisabDetailAccountsDTO
.
getAccountsOverallCost
();
chDisabDetailAccountsDTO
.
setAccountsAllCost
(
accountsAllCost
.
add
(
limit
));
chDisabDetailAccountsDTO
.
setAccountsAllCost
(
accountsAllCost
.
add
(
limit
));
...
...
common/common-core/src/main/java/com/hungraim/ltc/pojo/vo/governance/SrvSendVO.java
View file @
480eb074
...
@@ -63,4 +63,6 @@ public class SrvSendVO extends PageInfo implements Serializable {
...
@@ -63,4 +63,6 @@ public class SrvSendVO extends PageInfo implements Serializable {
private
String
applyStatus
;
private
String
applyStatus
;
//分配状态
//分配状态
private
String
status
;
private
String
status
;
private
String
exitReasonId
;
}
}
governance/src/main/resources/com/hungraim/ltc/governance/mapper/SrvSend.xml
View file @
480eb074
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
<result
column=
"birthday"
jdbcType=
"DATE"
property=
"birthday"
/>
<result
column=
"birthday"
jdbcType=
"DATE"
property=
"birthday"
/>
<result
column=
"status"
jdbcType=
"VARCHAR"
property=
"status"
/>
<result
column=
"status"
jdbcType=
"VARCHAR"
property=
"status"
/>
<result
column=
"stop_time"
jdbcType=
"VARCHAR"
property=
"stopTime"
/>
<result
column=
"stop_time"
jdbcType=
"VARCHAR"
property=
"stopTime"
/>
<result
column=
"exit_reason_id"
jdbcType=
"VARCHAR"
property=
"exitReasonId"
/>
</resultMap>
</resultMap>
<!--查询服务分配信息列表-->
<!--查询服务分配信息列表-->
...
@@ -36,7 +37,8 @@
...
@@ -36,7 +37,8 @@
i.tel,
i.tel,
s.stop_time,
s.stop_time,
i.birthday,
i.birthday,
s.status
s.status,
i.exit_reason_id
FROM
FROM
ch_disable_info i
ch_disable_info i
LEFT JOIN ch_srv_send s ON s.disab_info_id = i.disab_info_id
LEFT JOIN ch_srv_send s ON s.disab_info_id = i.disab_info_id
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment