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
5d7402c5
Commit
5d7402c5
authored
Apr 28, 2023
by
zhangwanglin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
打卡记录问题修复
parent
cf6fa110
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
6 deletions
+9
-6
ChSrvTaskDetailMapper.java
...main/java/com/hungraim/ltc/dao/ChSrvTaskDetailMapper.java
+1
-1
SrvOrganEmpServiceImpl.java
...com/hungraim/ltc/service/impl/SrvOrganEmpServiceImpl.java
+7
-4
ChSrvTaskDetailMapper.xml
...rvice/src/main/resources/mapper/ChSrvTaskDetailMapper.xml
+1
-1
No files found.
apply/apply-service/src/main/java/com/hungraim/ltc/dao/ChSrvTaskDetailMapper.java
View file @
5d7402c5
...
...
@@ -37,7 +37,7 @@ public interface ChSrvTaskDetailMapper extends BaseMapper<ChSrvTaskDetail> {
ChDisabDetailAccounts
selectAccountsDetail
(
String
disabInfoId
,
String
srvDateStr
);
void
updateChDisabDetailAccounts
(
Long
accountsId
,
BigDecimal
accountsAllCostsub
,
BigDecimal
accountsOverallCostsub
,
BigDecimal
accountsPersonalCostsub
);
void
updateChDisabDetailAccounts
(
Long
accounts
Detail
Id
,
BigDecimal
accountsAllCostsub
,
BigDecimal
accountsOverallCostsub
,
BigDecimal
accountsPersonalCostsub
);
List
<
ChSrvTaskDetail2Vo
>
chSrvTaskDetailExportList
(
Long
empId
,
String
empName
,
String
status
,
String
sevrTime
);
...
...
apply/apply-service/src/main/java/com/hungraim/ltc/service/impl/SrvOrganEmpServiceImpl.java
View file @
5d7402c5
...
...
@@ -40,6 +40,7 @@ import java.text.ParseException;
import
java.text.SimpleDateFormat
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.Objects
;
import
java.util.stream.Collectors
;
@Service
...
...
@@ -211,14 +212,15 @@ public class SrvOrganEmpServiceImpl implements SrvOrganEmpService {
Date
srvEndTime
=
chSrvTaskDetail
.
getSrvEndTime
();
String
srvEndTimeStr
=
DateUtils
.
dateTimeToStr
(
srvEndTime
);
Long
min
=
dateDiff
(
srvStartTimeStr
,
srvEndTimeStr
,
"yyyy-MM-dd HH:mm:ss"
,
"min"
);
if
(
min
>=
90
){
if
(
min
>=
90
)
{
Date
srvDate
=
chSrvTaskDetail
.
getSrvDate
();
String
srvDateStr
=
DateUtils
.
dateToStrYm
(
srvDate
);
Long
srvTaskId
=
chSrvTaskDetail
.
getSrvTaskId
();
String
disabInfoId
=
chSrvTaskDetailMapper
.
selectBySrvTaskId
(
String
.
valueOf
(
srvTaskId
));
ChDisabDetailAccounts
chDisabDetailAccounts
=
chSrvTaskDetailMapper
.
selectAccountsDetail
(
disabInfoId
,
srvDateStr
);
if
(
Objects
.
nonNull
(
chDisabDetailAccounts
))
{
Short
status
=
chDisabDetailAccounts
.
getStatus
();
if
(
status
!=
0
)
{
if
(
status
!=
0
)
{
// 已申报不能进行删除
return
Result
.
failed
(
"已申报不能进行删除"
);
}
...
...
@@ -228,8 +230,9 @@ public class SrvOrganEmpServiceImpl implements SrvOrganEmpService {
BigDecimal
accountsAllCostsub
=
accountsAllCost
.
subtract
(
new
BigDecimal
(
75
));
BigDecimal
accountsOverallCostsub
=
accountsOverallCost
.
subtract
(
new
BigDecimal
(
60
));
BigDecimal
accountsPersonalCostsub
=
accountsPersonalCost
.
subtract
(
new
BigDecimal
(
15
));
Long
accountsId
=
chDisabDetailAccounts
.
getAccountsId
();
chSrvTaskDetailMapper
.
updateChDisabDetailAccounts
(
accountsId
,
accountsAllCostsub
,
accountsOverallCostsub
,
accountsPersonalCostsub
);
Long
accountsDetailId
=
chDisabDetailAccounts
.
getAccountsDetailId
();
chSrvTaskDetailMapper
.
updateChDisabDetailAccounts
(
accountsDetailId
,
accountsAllCostsub
,
accountsOverallCostsub
,
accountsPersonalCostsub
);
}
}
}
chSrvTaskDetailMapper
.
deleteFinshItem
(
taskDetailId
);
...
...
apply/apply-service/src/main/resources/mapper/ChSrvTaskDetailMapper.xml
View file @
5d7402c5
...
...
@@ -128,7 +128,7 @@ WHERE TASK_DETAIL_ID = #{taskDetailId}
<update
id =
"updateChDisabDetailAccounts"
>
UPDATE CH_DISAB_ACCOUNTS_DETAIL d SET d.ACCOUNTS_ALL_COST = #{accountsAllCostsub}, d.ACCOUNTS_OVERALL_COST = #{accountsOverallCostsub},
d.ACCOUNTS_PERSONAL_COST = #{accountsPersonalCostsub}
WHERE d.ACCOUNTS_
ID = #{accounts
Id}
WHERE d.ACCOUNTS_
DETAIL_ID = #{accountsDetail
Id}
</update>
<select
id=
"selectBySrvTaskId"
resultType=
"java.lang.String"
>
...
...
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