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
1a235765
Commit
1a235765
authored
Mar 21, 2023
by
zhangwanglin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
校验
parent
3ed8759c
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
58 additions
and
3 deletions
+58
-3
ChDisabFreeRdInfoMapper.xml
...ice/src/main/resources/mapper/ChDisabFreeRdInfoMapper.xml
+1
-1
DisableController.java
...n/java/com/hungraim/ltc/controller/DisableController.java
+12
-0
DisableService.java
...rc/main/java/com/hungraim/ltc/service/DisableService.java
+1
-0
DisableServiceImpl.java
...ava/com/hungraim/ltc/service/impl/DisableServiceImpl.java
+7
-0
TaskMapper.java
...ervice/src/main/java/com/hungraim/ltc/dao/TaskMapper.java
+3
-0
TaskServiceImpl.java
...n/java/com/hungraim/ltc/service/impl/TaskServiceImpl.java
+4
-0
ChDisableEvaluateMapper.xml
...ice/src/main/resources/mapper/ChDisableEvaluateMapper.xml
+7
-0
BuildBedController.java
...ungraim/ltc/governance/controller/BuildBedController.java
+13
-0
DisableInfoServie.java
...om/hungraim/ltc/governance/service/DisableInfoServie.java
+1
-1
DisableInfoServieImpl.java
...im/ltc/governance/service/impl/DisableInfoServieImpl.java
+8
-0
ChSrvPlanMapper.xml
...es/com/hungraim/ltc/governance/mapper/ChSrvPlanMapper.xml
+1
-1
No files found.
account/account-service/src/main/resources/mapper/ChDisabFreeRdInfoMapper.xml
View file @
1a235765
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
left join CH_SRV_ORGAN organ on organ.SRV_ORGAN_ID = detail.SRV_ORGAN_ID
left join CH_SRV_ORGAN organ on organ.SRV_ORGAN_ID = detail.SRV_ORGAN_ID
<where>
<where>
<if
test=
"req.realName != null and req.realName != ''"
>
<if
test=
"req.realName != null and req.realName != ''"
>
and info.REAL_NAME
= #{req.realName}
and info.REAL_NAME
like CONCAT(CONCAT('%',#{req.realName}) ,'%')
</if>
</if>
<if
test=
"req.accountsTime != null and req.accountsTime != ''"
>
<if
test=
"req.accountsTime != null and req.accountsTime != ''"
>
and to_char(detail.accounts_time,'yyyy-MM-dd') = #{req.accountsTime}
and to_char(detail.accounts_time,'yyyy-MM-dd') = #{req.accountsTime}
...
...
apply/apply-service/src/main/java/com/hungraim/ltc/controller/DisableController.java
View file @
1a235765
...
@@ -556,4 +556,16 @@ public class DisableController {
...
@@ -556,4 +556,16 @@ public class DisableController {
return
Result
.
success
(
disableExitHis
);
return
Result
.
success
(
disableExitHis
);
}
}
@RequestMapping
(
"/getDisableCertiCode"
)
public
Result
getDisableCertiCode
(
String
certiCode
)
{
if
(
certiCode
==
null
)
{
return
Result
.
failed
(
ResultCode
.
REQUEST_PARAM_ERROR
);
}
Integer
integer
=
disableService
.
selectByCertiCode
(
certiCode
);
if
(
integer
>
0
)
{
return
Result
.
failed
(
"失能申请已存在该人员身份证,请联系管理员"
);
}
return
Result
.
success
();
}
}
}
apply/apply-service/src/main/java/com/hungraim/ltc/service/DisableService.java
View file @
1a235765
...
@@ -186,4 +186,5 @@ public interface DisableService {
...
@@ -186,4 +186,5 @@ public interface DisableService {
List
<
ChDisableExit
>
getDisableExitHis
(
Integer
disableInfoId
);
List
<
ChDisableExit
>
getDisableExitHis
(
Integer
disableInfoId
);
Integer
selectByCertiCode
(
String
certiCode
);
}
}
apply/apply-service/src/main/java/com/hungraim/ltc/service/impl/DisableServiceImpl.java
View file @
1a235765
...
@@ -649,6 +649,13 @@ public class DisableServiceImpl implements DisableService {
...
@@ -649,6 +649,13 @@ public class DisableServiceImpl implements DisableService {
}
}
@Override
public
Integer
selectByCertiCode
(
String
certiCode
){
List
<
ChDisableApply
>
chDisableApplies
=
disableApplyMapper
.
selectList
(
new
LambdaQueryWrapper
<
ChDisableApply
>()
.
eq
(
ChDisableApply:
:
getCertiCode
,
certiCode
));
return
chDisableApplies
.
size
();
}
...
...
assessment/assessment-service/src/main/java/com/hungraim/ltc/dao/TaskMapper.java
View file @
1a235765
...
@@ -81,4 +81,7 @@ public interface TaskMapper extends BaseMapper<ChAprTask> {
...
@@ -81,4 +81,7 @@ public interface TaskMapper extends BaseMapper<ChAprTask> {
int
insertSrvSend
(
Integer
disableInfoId
);
int
insertSrvSend
(
Integer
disableInfoId
);
ChDisableInfo
selectDisableBycertiCode
(
@Param
(
"certiCode"
)
String
certiCode
);
ChDisableInfo
selectDisableBycertiCode
(
@Param
(
"certiCode"
)
String
certiCode
);
Integer
selectReportByTaskId
(
String
taskId
);
}
}
assessment/assessment-service/src/main/java/com/hungraim/ltc/service/impl/TaskServiceImpl.java
View file @
1a235765
...
@@ -490,6 +490,10 @@ public class TaskServiceImpl implements TaskService {
...
@@ -490,6 +490,10 @@ public class TaskServiceImpl implements TaskService {
if
(
task
==
null
)
{
if
(
task
==
null
)
{
return
Result
.
failed
(
"无效的taskId!"
);
return
Result
.
failed
(
"无效的taskId!"
);
}
}
Integer
integer
=
taskMapper
.
selectReportByTaskId
(
id
);
if
(
integer
>
0
){
return
Result
.
failed
(
"有已分配未进行评定报告录入的单子,请先录入!"
);
}
//更新评定任务信息
//更新评定任务信息
task
.
setAprOrganId
(
chAprEmp
.
getAprOrganId
());
//鉴定机构id
task
.
setAprOrganId
(
chAprEmp
.
getAprOrganId
());
//鉴定机构id
task
.
setAprEmpId
(
Integer
.
parseInt
(
empId
));
//评定人员id
task
.
setAprEmpId
(
Integer
.
parseInt
(
empId
));
//评定人员id
...
...
assessment/assessment-service/src/main/resources/mapper/ChDisableEvaluateMapper.xml
View file @
1a235765
...
@@ -545,4 +545,10 @@
...
@@ -545,4 +545,10 @@
<select
id=
"selectDisableBycertiCode"
resultType=
"com.hungraim.ltc.pojo.entity.disable.ChDisableInfo"
>
<select
id=
"selectDisableBycertiCode"
resultType=
"com.hungraim.ltc.pojo.entity.disable.ChDisableInfo"
>
select * from CH_DISABLE_INFO info where info.CERTI_CODE = #{certiCode} and rownum = 1 order by info.FCD desc
select * from CH_DISABLE_INFO info where info.CERTI_CODE = #{certiCode} and rownum = 1 order by info.FCD desc
</select>
</select>
<select
id=
"selectReportByTaskId"
resultType=
"java.lang.Integer"
>
select count(1) from CH_APR_REPORT r left join CH_APR_TASK t on r.TASK_ID = t.TASK_ID
where r.TASK_ID = #{taskId} and t.TASK_STATUS !=3
</select>
</mapper>
</mapper>
\ No newline at end of file
governance/src/main/java/com/hungraim/ltc/governance/controller/BuildBedController.java
View file @
1a235765
...
@@ -245,6 +245,19 @@ public class BuildBedController {
...
@@ -245,6 +245,19 @@ public class BuildBedController {
if
(
chSrvSendsList
.
size
()
>
0
)
{
if
(
chSrvSendsList
.
size
()
>
0
)
{
return
Result
.
failed
(
"已分配护理机构,请先终止或退出再操作"
);
return
Result
.
failed
(
"已分配护理机构,请先终止或退出再操作"
);
}
}
Integer
srvModeId
=
disableInfoServie
.
querySrvModeId
(
disabInfoId
);
Long
srvModeId1
=
chSrvSend
.
getSrvModeId
();
if
(
srvModeId
!=
srvModeId1
.
intValue
()){
String
srvModeName
=
null
;
if
(
srvModeId
==
1
){
srvModeName
=
"医疗"
;
}
else
if
(
srvModeId
==
2
){
srvModeName
=
"养老"
;
}
else
if
(
srvModeId
==
3
){
srvModeName
=
"上门"
;
}
return
Result
.
failed
(
"选择的服务方式和失能人员申请的不一致,申请的服务方式为"
+
srvModeName
);
}
chSrvSend
.
setAllotTime
(
new
Date
());
chSrvSend
.
setAllotTime
(
new
Date
());
chSrvSend
.
setStatus
(
Short
.
valueOf
(
"1"
));
chSrvSend
.
setStatus
(
Short
.
valueOf
(
"1"
));
...
...
governance/src/main/java/com/hungraim/ltc/governance/service/DisableInfoServie.java
View file @
1a235765
...
@@ -13,5 +13,5 @@ public interface DisableInfoServie extends IService<ChDisableInfo> {
...
@@ -13,5 +13,5 @@ public interface DisableInfoServie extends IService<ChDisableInfo> {
Page
<
DisableInfoVo
>
querySrvYet
(
Integer
disableInfoId
,
int
current
,
int
limit
,
Integer
status
,
Integer
sendId
);
Page
<
DisableInfoVo
>
querySrvYet
(
Integer
disableInfoId
,
int
current
,
int
limit
,
Integer
status
,
Integer
sendId
);
Integer
querySrvModeId
(
Long
disabInfoId
);
}
}
governance/src/main/java/com/hungraim/ltc/governance/service/impl/DisableInfoServieImpl.java
View file @
1a235765
...
@@ -19,4 +19,12 @@ public class DisableInfoServieImpl extends ServiceImpl<DisableInfoMapper, ChDisa
...
@@ -19,4 +19,12 @@ public class DisableInfoServieImpl extends ServiceImpl<DisableInfoMapper, ChDisa
Page
<
SrvSendVO
>
page
=
new
Page
<>(
current
,
limit
);
Page
<
SrvSendVO
>
page
=
new
Page
<>(
current
,
limit
);
return
this
.
baseMapper
.
querySrvYet
(
page
,
disableInfoId
,
status
,
sendId
);
return
this
.
baseMapper
.
querySrvYet
(
page
,
disableInfoId
,
status
,
sendId
);
}
}
@Override
public
Integer
querySrvModeId
(
Long
disabInfoId
){
ChDisableInfo
chDisableInfo
=
baseMapper
.
selectById
(
disabInfoId
);
Integer
srvModeId
=
chDisableInfo
.
getSrvModeId
();
return
srvModeId
;
}
}
}
governance/src/main/resources/com/hungraim/ltc/governance/mapper/ChSrvPlanMapper.xml
View file @
1a235765
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<select
id=
"queryPlan"
resultType=
"com.hungraim.ltc.pojo.entity.governance.ChSrvPlan"
>
<select
id=
"queryPlan"
resultType=
"com.hungraim.ltc.pojo.entity.governance.ChSrvPlan"
>
select
select
disable.DISAB_INFO_ID disabInfoId,
disable.DISAB_INFO_ID disabInfoId,
program
.SRV_MODE_ID modeId,
disable
.SRV_MODE_ID modeId,
--护理机构名称
--护理机构名称
organ.srv_organ_id srvOrganId,
organ.srv_organ_id srvOrganId,
emp.emp_id empId,
emp.emp_id empId,
...
...
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