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
33f026e4
Commit
33f026e4
authored
Apr 11, 2023
by
zhangwanglin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
服务分配
parent
b5c0188e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
9 deletions
+11
-9
ChSrvSendMapper.java
...java/com/hungraim/ltc/governance/dao/ChSrvSendMapper.java
+2
-1
SrvTaskServiceImpl.java
...graim/ltc/governance/service/impl/SrvTaskServiceImpl.java
+6
-5
ChSrvSendMapper.xml
...es/com/hungraim/ltc/governance/mapper/ChSrvSendMapper.xml
+3
-3
No files found.
governance/src/main/java/com/hungraim/ltc/governance/dao/ChSrvSendMapper.java
View file @
33f026e4
...
...
@@ -23,7 +23,7 @@ public interface ChSrvSendMapper extends BaseMapper<ChSrvSend> {
*/
Page
<
SvrSendListVo
>
selectSrvSendList
(
Page
<
SvrSendListVo
>
page
,
@Param
(
"srvOrganId"
)
Long
srvOrganId
,
@Param
(
"realName"
)
String
realName
,
@Param
(
"realTel"
)
String
realTel
,
@Param
(
"programStatus"
)
String
programStatus
);
int
updateSrvSendInfo
(
Long
disabInfoId
);
int
updateSrvSendInfo
(
Long
disabInfoId
,
String
programEdnDateStr
);
int
updateSrvSendById
(
ChSrvSend
chSrvSend
);
}
\ No newline at end of file
governance/src/main/java/com/hungraim/ltc/governance/service/impl/SrvTaskServiceImpl.java
View file @
33f026e4
...
...
@@ -231,11 +231,12 @@ public class SrvTaskServiceImpl implements SrvTaskService {
chSrvProgram
.
setProgStatus
(
2
);
chSrvProgramMapper
.
updateById
(
chSrvProgram
);
Long
disabInfoId
=
chSrvProgram
.
getDisabInfoId
();
ChSrvSend
chSrvSend
=
new
ChSrvSend
();
// chSrvSend.setStatus((short)2);
// chSrvSend.setEndTime(new Date());
chSrvSend
.
setDisabInfoId
(
disabInfoId
);
chSrvSendMapper
.
updateSrvSendInfo
(
disabInfoId
);
Date
programEdnDate
=
chSrvProgram
.
getProgramEdnDate
();
String
programEdnDateStr
=
DateUtils
.
dateToStr
(
programEdnDate
);
int
i
=
chSrvSendMapper
.
updateSrvSendInfo
(
disabInfoId
,
programEdnDateStr
);
if
(
i
>
0
){
log
.
info
(
"服务分配{}终止成功"
,
disabInfoId
);
}
}
}
// 查询需要执行的计划
...
...
governance/src/main/resources/com/hungraim/ltc/governance/mapper/ChSrvSendMapper.xml
View file @
33f026e4
...
...
@@ -74,14 +74,14 @@
<update
id=
"updateSrvSendInfo"
>
update CH_SRV_SEND p set p.status = '2',p.end_time = sysdate where
p.DISAB_INFO_ID = #{disabInfoId}
p.DISAB_INFO_ID = #{disabInfoId}
and to_char(p.STOP_TIME,'yyyy-MM-dd') = #{programEdnDateStr}
</update>
<update
id=
"updateSrvSendById"
parameterType=
"com.hungraim.ltc.pojo.entity.serviceManage.ChSrvSend"
>
update CH_SRV_SEND p set p.status = '1',p.SRV_MODE_ID = #{srvModeId},p.ALLOT_TIME =#{allotTime},
p.
DISAB_INFO_ID =#{disabInfoId},p.STOP_TIME =#{stopTime},
p.fcd = sysdate where
p.SRV_SEND_ID = #{srvSendId}
p.
STOP_TIME =#{stopTime},p.SRV_ORGAN_ID = #{srvOrganId},
p.fcd = sysdate where
p.SRV_SEND_ID = #{srvSendId}
and p.DISAB_INFO_ID =#{disabInfoId}
</update>
...
...
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