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
3fad9da4
Commit
3fad9da4
authored
Apr 11, 2023
by
zhangwanglin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
打卡记录
parent
3a80948f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
5 deletions
+20
-5
ChSrvTaskDetailMapper.java
...main/java/com/hungraim/ltc/dao/ChSrvTaskDetailMapper.java
+2
-0
SrvOrganEmpServiceImpl.java
...com/hungraim/ltc/service/impl/SrvOrganEmpServiceImpl.java
+4
-4
ChSrvTaskDetailMapper.xml
...rvice/src/main/resources/mapper/ChSrvTaskDetailMapper.xml
+14
-1
No files found.
apply/apply-service/src/main/java/com/hungraim/ltc/dao/ChSrvTaskDetailMapper.java
View file @
3fad9da4
...
...
@@ -26,6 +26,8 @@ public interface ChSrvTaskDetailMapper extends BaseMapper<ChSrvTaskDetail> {
*/
Page
<
ChSrvTaskDetail2Vo
>
chSrvTaskDetailQuery
(
Page
<
ChSrvTaskDetail2Vo
>
page
,
Long
empId
);
int
deleteFinshItem
(
long
taskDetailId
);
String
selectBySrvTaskId
(
String
srvTaskId
);
int
updateByTaskDetailId
(
String
taskDetailId
);
...
...
apply/apply-service/src/main/java/com/hungraim/ltc/service/impl/SrvOrganEmpServiceImpl.java
View file @
3fad9da4
...
...
@@ -182,10 +182,10 @@ public class SrvOrganEmpServiceImpl implements SrvOrganEmpService {
if
(
4
==
chSrvTaskDetail
.
getStatus
())
{
// 开始时间
Date
srvStartTime
=
chSrvTaskDetail
.
getSrvStartTime
();
String
srvStartTimeStr
=
DateUtils
.
dateToStr
(
srvStartTime
);
String
srvStartTimeStr
=
DateUtils
.
dateT
imeT
oStr
(
srvStartTime
);
// 结束时间
Date
srvEndTime
=
chSrvTaskDetail
.
getSrvEndTime
();
String
srvEndTimeStr
=
DateUtils
.
dateToStr
(
srvEndTime
);
String
srvEndTimeStr
=
DateUtils
.
dateT
imeT
oStr
(
srvEndTime
);
Long
min
=
dateDiff
(
srvStartTimeStr
,
srvEndTimeStr
,
"yyyy-MM-dd HH:mm:ss"
,
"min"
);
if
(
min
>=
90
){
Date
srvDate
=
chSrvTaskDetail
.
getSrvDate
();
...
...
@@ -194,7 +194,7 @@ public class SrvOrganEmpServiceImpl implements SrvOrganEmpService {
String
disabInfoId
=
chSrvTaskDetailMapper
.
selectBySrvTaskId
(
String
.
valueOf
(
srvTaskId
));
ChDisabDetailAccounts
chDisabDetailAccounts
=
chSrvTaskDetailMapper
.
selectAccountsDetail
(
disabInfoId
,
srvDateStr
);
Short
status
=
chDisabDetailAccounts
.
getStatus
();
if
(
status
==
1
){
if
(
status
!=
0
){
// 已申报不能进行删除
return
-
1
;
}
...
...
@@ -208,7 +208,7 @@ public class SrvOrganEmpServiceImpl implements SrvOrganEmpService {
chSrvTaskDetailMapper
.
updateChDisabDetailAccounts
(
accountsId
,
accountsAllCostsub
,
accountsOverallCostsub
,
accountsPersonalCostsub
);
}
}
chSrvTaskDetailMapper
.
deleteFinshItem
(
taskDetailId
);
return
chSrvTaskDetailMapper
.
updateByTaskDetailId
(
String
.
valueOf
(
chSrvTaskDetail
.
getTaskDetailId
()));
}
...
...
apply/apply-service/src/main/resources/mapper/ChSrvTaskDetailMapper.xml
View file @
3fad9da4
...
...
@@ -75,7 +75,7 @@
LEFT JOIN CH_SRV_ORGAN_EMP m ON m.EMP_ID = k.SRV_EMP_ID
LEFT JOIN CH_SRV_ORGAN T5 ON T5.SRV_ORGAN_ID = m.SRV_ORGAN_ID
WHERE m.EMP_ID = #{empId}
order by t.
STATUS
desc
order by t.
TASK_DETAIL_ID
desc
</select>
...
...
@@ -92,4 +92,16 @@ WHERE TASK_DETAIL_ID = #{taskDetailId}
WHERE d.ACCOUNTS_ID = #{accountsId}
</update>
<select
id=
"selectBySrvTaskId"
resultType=
"java.lang.String"
>
select DISAB_INFO_ID from CH_SRV_TASK where SRV_TASK_ID = #{srvTaskId} and rownum = 1
</select>
<select
id=
"selectAccountsDetail"
resultType=
"com.hungraim.ltc.pojo.entity.account.ChDisabDetailAccounts"
>
select * from CH_DISAB_ACCOUNTS_DETAIL d where d.DISAB_INFO_ID = #{disabInfoId} and to_char(d.ACCOUNTS_TIME,'yyyy-MM') = #{srvDateStr}
</select>
<delete
id=
"deleteFinshItem"
>
delete from CH_SRV_TASK_FINISH_ITEM where TASK_DETAIL_ID = #{taskDetailId}
</delete>
</mapper>
\ No newline at end of file
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