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
b7acf247
Commit
b7acf247
authored
Mar 29, 2023
by
zhangwanglin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
失能
parent
0ea43743
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
41 additions
and
20 deletions
+41
-20
DisableController.java
...n/java/com/hungraim/ltc/controller/DisableController.java
+3
-3
DisableInfoMapper.java
...src/main/java/com/hungraim/ltc/dao/DisableInfoMapper.java
+0
-1
DisableService.java
...rc/main/java/com/hungraim/ltc/service/DisableService.java
+1
-1
DisableServiceImpl.java
...ava/com/hungraim/ltc/service/impl/DisableServiceImpl.java
+14
-3
DisableInfoMapper.xml
...y-service/src/main/resources/mapper/DisableInfoMapper.xml
+2
-7
DisableExitVO.java
.../java/com/hungraim/ltc/pojo/vo/disable/DisableExitVO.java
+19
-0
BuildBedController.java
...ungraim/ltc/governance/controller/BuildBedController.java
+0
-5
SrvTaskScheduledController.java
...ltc/governance/controller/SrvTaskScheduledController.java
+2
-0
No files found.
apply/apply-service/src/main/java/com/hungraim/ltc/controller/DisableController.java
View file @
b7acf247
...
...
@@ -526,11 +526,11 @@ public class DisableController {
* 失能人员退出
*/
@RequestMapping
(
"/disableInfoExit"
)
public
Result
disableInfoExit
(
Integer
disableInfoId
,
Integer
exitReasonId
,
Integer
applyId
,
Integer
srvOrganId
,
Integer
programId
,
String
exitTime
)
{
if
(
disable
InfoId
==
null
||
exitReasonId
==
null
||
applyId
==
null
)
{
public
Result
disableInfoExit
(
DisableExitVO
disableExitVO
)
{
if
(
disable
ExitVO
.
getDisableInfoId
()
==
null
||
disableExitVO
.
getExitReasonId
()
==
null
||
disableExitVO
.
getApplyId
()
==
null
)
{
return
Result
.
failed
(
ResultCode
.
REQUEST_PARAM_ERROR
);
}
int
i
=
disableService
.
disableInfoExit
(
disable
InfoId
,
exitReasonId
,
applyId
,
srvOrganId
,
programId
,
exitTime
);
int
i
=
disableService
.
disableInfoExit
(
disable
ExitVO
);
if
(
i
>
0
)
{
return
Result
.
success
();
}
else
{
...
...
apply/apply-service/src/main/java/com/hungraim/ltc/dao/DisableInfoMapper.java
View file @
b7acf247
...
...
@@ -39,6 +39,5 @@ public interface DisableInfoMapper extends BaseMapper<ChDisableInfo> {
int
updateSrvSendById
(
ChSrvSend
chSrvSend
);
int
insertSrvSend
(
Integer
disableInfoId
);
}
apply/apply-service/src/main/java/com/hungraim/ltc/service/DisableService.java
View file @
b7acf247
...
...
@@ -182,7 +182,7 @@ public interface DisableService {
Integer
applyMethod
);
int
disableInfoExit
(
Integer
disableInfoId
,
Integer
exitReasonId
,
Integer
applyId
,
Integer
srvOrganId
,
Integer
programId
,
String
exitTime
);
int
disableInfoExit
(
DisableExitVO
disableExitVO
);
List
<
ChDisableExit
>
getDisableExitHis
(
Integer
disableInfoId
);
...
...
apply/apply-service/src/main/java/com/hungraim/ltc/service/impl/DisableServiceImpl.java
View file @
b7acf247
...
...
@@ -618,7 +618,12 @@ public class DisableServiceImpl implements DisableService {
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
int
disableInfoExit
(
Integer
disableInfoId
,
Integer
exitReasonId
,
Integer
applyId
,
Integer
srvOrganId
,
Integer
programId
,
String
exitTime
)
{
public
int
disableInfoExit
(
DisableExitVO
disableExitVO
)
{
String
exitTime
=
disableExitVO
.
getExitTime
();
Integer
applyId
=
disableExitVO
.
getApplyId
();
Integer
exitReasonId
=
disableExitVO
.
getExitReasonId
();
Integer
srvOrganId
=
disableExitVO
.
getSrvOrganId
();
Integer
disableInfoId
=
disableExitVO
.
getDisableInfoId
();
ChDisableApply
chDisableApply
=
new
ChDisableApply
();
Date
date
=
DateUtils
.
strToDate
(
exitTime
);
chDisableApply
.
setApplyId
(
Long
.
valueOf
(
applyId
));
...
...
@@ -648,7 +653,7 @@ public class DisableServiceImpl implements DisableService {
ChSrvSend
chSrvSend
=
new
ChSrvSend
();
chSrvSend
.
setDisabInfoId
(
Long
.
valueOf
(
disableInfoId
));
chSrvSend
.
setEndTime
(
date
);
//
4, 转入医保 5, 异地
//
4,转入医保 5, 异地 选择原因转入医保和异地,保留原服务机构分配数据,状态为已分配,只终止方案和计划,保留终止后的方案和计划历史数据
if
(
exitReasonId
==
4
||
exitReasonId
==
5
){
// chSrvSend.setStatus((short)3);
// disableInfoMapper.updateSrvSendById(chSrvSend);
...
...
@@ -658,8 +663,14 @@ public class DisableServiceImpl implements DisableService {
disableInfoMapper
.
updateSrvSendById
(
chSrvSend
);
}
else
{
chSrvSend
.
setStatus
((
short
)
3
);
// 更新为已退出
disableInfoMapper
.
updateSrvSendById
(
chSrvSend
);
disableInfoMapper
.
insertSrvSend
(
disableInfoId
);
// 插入一条未分配的记录
ChSrvSend
chSrvSend1
=
new
ChSrvSend
();
chSrvSend1
.
setDisabInfoId
(
Long
.
valueOf
(
disableInfoId
));
chSrvSend1
.
setFcd
(
new
Date
());
chSrvSend1
.
setStatus
((
short
)
0
);
chSrvSendInfoMapper
.
insert
(
chSrvSend1
);
}
}
...
...
apply/apply-service/src/main/resources/mapper/DisableInfoMapper.xml
View file @
b7acf247
...
...
@@ -74,11 +74,5 @@
</update>
<insert
id=
"insertSrvSend"
>
<selectKey
resultType=
"java.lang.Integer"
order=
"BEFORE"
keyProperty=
"id"
>
SELECT seq_ch_srv_send.NEXTVAL as id FROM DUAL
</selectKey>
insert INTO ch_srv_send(SRV_SEND_ID,DISAB_INFO_ID,FCD,STATUS) values
(#{id},#{disableInfoId},SYSDATE,0)
</insert>
</mapper>
\ No newline at end of file
common/common-core/src/main/java/com/hungraim/ltc/pojo/vo/disable/DisableExitVO.java
0 → 100644
View file @
b7acf247
package
com
.
hungraim
.
ltc
.
pojo
.
vo
.
disable
;
import
lombok.Data
;
/**
* @author zwl
* @ClassName DisableExitVO
* @description
* @date 2023/3/29 10:06
**/
@Data
public
class
DisableExitVO
{
private
Integer
disableInfoId
;
private
Integer
exitReasonId
;
private
Integer
applyId
;
private
Integer
srvOrganId
;
private
Integer
programId
;
private
String
exitTime
;
}
governance/src/main/java/com/hungraim/ltc/governance/controller/BuildBedController.java
View file @
b7acf247
...
...
@@ -270,11 +270,6 @@ public class BuildBedController {
chSrvSend
.
setAllotTime
(
new
Date
());
chSrvSend
.
setStatus
(
Short
.
valueOf
(
"1"
));
if
(
chrSrvVo
.
getSrvSendId
()
==
null
)
{
// Long id = sendService.selectMaxId();
// if (id == null) {
// id = 0L;
// }
// chSrvSend.setSrvSendId(++id);
sendService
.
insertSrvSend
(
chSrvSend
);
}
else
{
chSrvSend
.
setSrvSendId
(
chrSrvVo
.
getSrvSendId
());
...
...
governance/src/main/java/com/hungraim/ltc/governance/controller/SrvTaskScheduledController.java
View file @
b7acf247
...
...
@@ -44,4 +44,6 @@ public class SrvTaskScheduledController {
}
}
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