Commit 6654fa1f authored by zhangwanglin's avatar zhangwanglin

补卡列表

parent 04f1ea31
...@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment