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
6654fa1f
Commit
6654fa1f
authored
Aug 10, 2023
by
zhangwanglin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
补卡列表
parent
04f1ea31
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
19 deletions
+15
-19
ChSrvTaskDetailMapper.xml
...rvice/src/main/resources/mapper/ChSrvTaskDetailMapper.xml
+15
-19
No files found.
account/account-service/src/main/resources/mapper/ChSrvTaskDetailMapper.xml
View file @
6654fa1f
...
@@ -46,24 +46,20 @@
...
@@ -46,24 +46,20 @@
<select
id=
"getSrvTaskCardList"
resultType=
"com.hungraim.ltc.pojo.vo.account.SrvTaskRespVO"
>
<select
id=
"getSrvTaskCardList"
resultType=
"com.hungraim.ltc.pojo.vo.account.SrvTaskRespVO"
>
select info.REAL_NAME realName,
select distinct info.REAL_NAME realName,
plan.PLAN_ID planId,
plan.TASK_DETAIL_ID taskDetailId,
plan.ITEM_ID itemId,
emp.emp_name empName,
plan.TASK_DETAIL_ID taskDetailId,
emp.emp_id empId,
plan.ITEM_NAME itemName,
info.DISAB_INFO_ID disabInfoId,
emp.emp_name empName,
organ.SRV_ORGAN_NAME srvOrganName,
emp.emp_id empId,
DECODE(plan.MODE_ID, '1','医疗','2', '养老','3','上门', '4', '异地') srvModeName,
info.DISAB_INFO_ID disabInfoId,
to_char(plan.SRV_PLAN_TIME,'yyyy-MM-dd') srvDate,
organ.SRV_ORGAN_NAME srvOrganName,
detail.check_status status
organ.SRV_ORGAN_ID srvOrganId,
from ch_srv_plan plan
DECODE(plan.MODE_ID, '1','医疗','2', '养老','3','上门', '4', '异地') srvModeName,
left join ch_disable_info info on plan.DISAB_INFO_ID = info.DISAB_INFO_ID
to_char(plan.SRV_PLAN_TIME,'yyyy-MM-dd') srvDate,
left join ch_srv_organ_emp emp on plan.emp_id = emp.emp_id
detail.check_status status
left join CH_SRV_TASK_DETAIL detail on detail.TASK_DETAIL_ID = plan.TASK_DETAIL_ID
from ch_srv_plan plan
left join CH_SRV_ORGAN organ on organ.SRV_ORGAN_ID = plan.SRV_ORGAN_ID
left join ch_disable_info info on plan.DISAB_INFO_ID = info.DISAB_INFO_ID
left join ch_srv_organ_emp emp on plan.emp_id = emp.emp_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
<where>
<where>
1=1 and detail.check_status in (1,2,3)
1=1 and detail.check_status in (1,2,3)
<if
test=
"req.status != null and req.status != ''"
>
<if
test=
"req.status != null and req.status != ''"
>
...
@@ -82,7 +78,7 @@
...
@@ -82,7 +78,7 @@
AND organ.SRV_ORGAN_ID = #{req.srvOrganId}
AND organ.SRV_ORGAN_ID = #{req.srvOrganId}
</if>
</if>
</where>
</where>
order by plan.PLAN_ID desc
</select>
</select>
...
...
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