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
73ba983a
Commit
73ba983a
authored
Apr 04, 2023
by
zhangwanglin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改计划问题
parent
eddb81cb
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
6 deletions
+7
-6
ChDisabAccountsDetailMapper.xml
...src/main/resources/mapper/ChDisabAccountsDetailMapper.xml
+4
-4
ChSrvTaskDetailMapper.xml
...rvice/src/main/resources/mapper/ChSrvTaskDetailMapper.xml
+0
-1
SrvTaskServiceImpl.java
...graim/ltc/governance/service/impl/SrvTaskServiceImpl.java
+2
-0
ChSrvPlanMapper.xml
...es/com/hungraim/ltc/governance/mapper/ChSrvPlanMapper.xml
+1
-1
No files found.
account/account-service/src/main/resources/mapper/ChDisabAccountsDetailMapper.xml
View file @
73ba983a
...
@@ -182,10 +182,10 @@ and organ.SRV_ORGAN_ID = #{req.srvOrganId} order by detail.SRV_DATE desc
...
@@ -182,10 +182,10 @@ and organ.SRV_ORGAN_ID = #{req.srvOrganId} order by detail.SRV_DATE desc
</select>
</select>
<select
id=
"queryTaskDetailDisable"
parameterType=
"com.hungraim.ltc.pojo.vo.account.TaskDetailDisableVO"
resultType=
"java.lang.Integer"
>
<select
id=
"queryTaskDetailDisable"
parameterType=
"com.hungraim.ltc.pojo.vo.account.TaskDetailDisableVO"
resultType=
"java.lang.Integer"
>
select count(1) from CH_SRV_TASK_DETAIL detail
select count(1) from CH_SRV_PLAN plan where plan.DISAB_INFO_ID = #{disabInfoId}
left join CH_SRV_TASK task on detail.SRV_TASK_ID = task.SRV_TASK_ID
and plan.is_STATUS = 4 and to_char(plan.SRV_PLAN_TIME,'yyyy-MM-dd') = #{srvDate}
where task.DISAB_INFO_ID = #{disabInfoId} and detail.STATUS = 4 and
and plan.TASK_DETAIL_ID
<![CDATA[ <>]]>
#{taskDetailId}
to_char(detail.SRV_DATE,'yyyy-MM-dd') = #{srvDate} and detail.TASK_DETAIL_ID
<![CDATA[ <>]]>
#{taskDetailId}
</select>
</select>
...
...
account/account-service/src/main/resources/mapper/ChSrvTaskDetailMapper.xml
View file @
73ba983a
...
@@ -25,7 +25,6 @@
...
@@ -25,7 +25,6 @@
left join CH_SRV_TASK_DETAIL detail on detail.TASK_DETAIL_ID = plan.TASK_DETAIL_ID
left join CH_SRV_TASK_DETAIL detail on detail.TASK_DETAIL_ID = plan.TASK_DETAIL_ID
left join CH_SRV_ORGAN organ on organ.SRV_ORGAN_ID = plan.SRV_ORGAN_ID
left join CH_SRV_ORGAN organ on organ.SRV_ORGAN_ID = plan.SRV_ORGAN_ID
<where>
<where>
<![CDATA[ detail.STATUS<>3 ]]>
<if
test=
"req.status != null and req.status != ''"
>
<if
test=
"req.status != null and req.status != ''"
>
and plan.IS_STATUS = #{req.status}
and plan.IS_STATUS = #{req.status}
</if>
</if>
...
...
governance/src/main/java/com/hungraim/ltc/governance/service/impl/SrvTaskServiceImpl.java
View file @
73ba983a
...
@@ -161,10 +161,12 @@ public class SrvTaskServiceImpl implements SrvTaskService {
...
@@ -161,10 +161,12 @@ public class SrvTaskServiceImpl implements SrvTaskService {
}
else
{
}
else
{
// 修改服务计划
// 修改服务计划
// chSrvTaskDetailMapper.delete(new QueryWrapper<ChSrvTaskDetail>().eq("srv_task_id", Long.parseLong(srvTaskId)));//删除原来的计划详情
// chSrvTaskDetailMapper.delete(new QueryWrapper<ChSrvTaskDetail>().eq("srv_task_id", Long.parseLong(srvTaskId)));//删除原来的计划详情
if
(
"2"
.
equals
(
srvTaskInfoVO
.
getTaskStatus
())){
UpdateWrapper
updateWrapper1
=
new
UpdateWrapper
();
UpdateWrapper
updateWrapper1
=
new
UpdateWrapper
();
updateWrapper1
.
eq
(
"SRV_TASK_ID"
,
srvTaskId
);
updateWrapper1
.
eq
(
"SRV_TASK_ID"
,
srvTaskId
);
updateWrapper1
.
set
(
"STATUS"
,
3
);
updateWrapper1
.
set
(
"STATUS"
,
3
);
chSrvTaskDetailMapper
.
update
(
null
,
updateWrapper1
);
chSrvTaskDetailMapper
.
update
(
null
,
updateWrapper1
);
}
// this.insertTaskDetail(Long.parseLong(srvTaskId), taskDetails);
// this.insertTaskDetail(Long.parseLong(srvTaskId), taskDetails);
//修改服务计划
//修改服务计划
ChSrvTask
chSrvTask
=
new
ChSrvTask
();
ChSrvTask
chSrvTask
=
new
ChSrvTask
();
...
...
governance/src/main/resources/com/hungraim/ltc/governance/mapper/ChSrvPlanMapper.xml
View file @
73ba983a
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
LEFT JOIN CH_SRV_ORGAN_PROJECT CSOP ON CSOP.PROJECT_ID = CSTFI.ITEM_ID
LEFT JOIN CH_SRV_ORGAN_PROJECT CSOP ON CSOP.PROJECT_ID = CSTFI.ITEM_ID
LEFT JOIN CH_SERVICE_TYPE_detailed d on d.service_type_detailed_id = CSOP.item_name
LEFT JOIN CH_SERVICE_TYPE_detailed d on d.service_type_detailed_id = CSOP.item_name
<where>
<where>
disable.SRV_MODE_ID in ('1','2') and program.program_id =#{programId}
disable.SRV_MODE_ID in ('1','2')
and detail.STATUS
<![CDATA[<>]]>
3
and program.program_id =#{programId}
<if
test=
"srvPlanTime != null"
>
<if
test=
"srvPlanTime != null"
>
and to_char(detail.SRV_DATE,'yyyy-MM-dd') = #{srvPlanTime}
and to_char(detail.SRV_DATE,'yyyy-MM-dd') = #{srvPlanTime}
</if>
</if>
...
...
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