Commit 068dd613 authored by 董天德's avatar 董天德

Merge remote-tracking branch 'origin/dev-20230128'

parents 63fa263c fe280ba0
...@@ -16,7 +16,7 @@ import java.util.List; ...@@ -16,7 +16,7 @@ import java.util.List;
@Repository @Repository
public interface ChDisabAccountsDetailMapper extends BaseMapper<ChDisabDetailAccounts> { public interface ChDisabAccountsDetailMapper extends BaseMapper<ChDisabDetailAccounts> {
List<OrganAccountsVO> getOrganAccountsList(@Param("taskDetailIds") List<String> taskDetailIds, String status); List<OrganAccountsVO> getOrganAccountsList(String taskDetailId);
Page<SrvOrganAccountListResp> searchSrvOrganAccountList(Page page, List<Long> organIds, SrvOrganListReq req); Page<SrvOrganAccountListResp> searchSrvOrganAccountList(Page page, List<Long> organIds, SrvOrganListReq req);
......
...@@ -11,10 +11,10 @@ ...@@ -11,10 +11,10 @@
--身份证号 --身份证号
disable.CERTI_CODE certiCode, disable.CERTI_CODE certiCode,
--所在省市 --所在省市
apply.MEDICAL_AREA medicalArea, (select district_name from ch_fnd_district dis where apply.MEDICAL_AREA = dis.district_code) medicalArea,
mode1.MODE_ID modeId, program.SRV_MODE_ID modeId,
--服务方式 --服务方式
mode1.mode_name srvModeName, DECODE(program.SRV_MODE_ID, '1','医疗','2', '养老','3','上门', '4', '异地') srvModeName,
--护理机构名称 --护理机构名称
organ.srv_organ_id srvOrganId, organ.srv_organ_id srvOrganId,
--护理机构名称 --护理机构名称
...@@ -23,41 +23,21 @@ ...@@ -23,41 +23,21 @@
emp.emp_name empName, emp.emp_name empName,
--任务时间 --任务时间
detail.SRV_DATE srvDate, detail.SRV_DATE srvDate,
detail.SRV_START_TIME srvStartTime,
detail.SRV_END_TIME srvEndTime,
-- 机构等级 -- 机构等级
organ.LEVEL_CODE levelCode, organ.LEVEL_CODE levelCode,
-- 失能等级
level1.DISABLE_LEVEL_NAME disableLevelName,
d.service_type_detailed_name itemName
,d.PARA_ID,
CSOP.ITEM_TIMES,
CSOP.ITEM_TIMES_TYPE,
CSTFI.ITEM_ID itemId CSTFI.ITEM_ID itemId
from ch_srv_task_detail detail--服务计划 from ch_srv_task_detail detail--服务计划
left join ch_srv_task task on task.srv_task_id = detail.srv_task_id--服务计划详情 left join ch_srv_task task on task.srv_task_id = detail.srv_task_id--服务计划详情
left join ch_disable_info disable on task.disab_info_id = disable.disab_info_id--失能人员 left join ch_disable_info disable on task.disab_info_id = disable.disab_info_id--失能人员
left join CH_DEV.CH_DISABLE_APPLY apply on apply.apply_id = disable.apply_id left join CH_DEV.CH_DISABLE_APPLY apply on apply.apply_id = disable.apply_id
left join ch_apr_task aprtask on disable.last_task_id = aprtask.task_id--评定任务 left join ch_srv_organ_emp emp on task.srv_emp_id = emp.emp_id--护理人员
left join ch_apr_report report on aprtask.task_id = report.task_id--评定报告
left join ch_srv_program program on task.program_id = program.program_id--服务方案 left join ch_srv_program program on task.program_id = program.program_id--服务方案
left join ch_srv_organ organ on program.srv_organ_id = organ.srv_organ_id--服务机构 left join ch_srv_organ organ on program.srv_organ_id = organ.srv_organ_id--服务机构
left join ch_cfg_srv_mode mode1 on program.srv_mode_id = mode1.mode_id--服务方式
left join ch_srv_organ_emp emp on task.srv_emp_id = emp.emp_id--护理人员
-- 失能等级
left join ch_cfg_srv_disable_level level1 on report.disable_level_id = level1.disable_level_id
LEFT JOIN CH_SRV_TASK_FINISH_ITEM CSTFI ON detail.TASK_DETAIL_ID = CSTFI.TASK_DETAIL_ID LEFT JOIN CH_SRV_TASK_FINISH_ITEM CSTFI ON detail.TASK_DETAIL_ID = CSTFI.TASK_DETAIL_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
<where> <where>
<if test="status != null and status != ''"> detail.STATUS = '4'
AND detail.STATUS = #{status} <if test="taskDetailId != null and taskDetailId != ''">
</if> AND detail.TASK_DETAIL_ID = #{taskDetailId}
<if test="taskDetailIds != null and taskDetailIds.size() > 0">
AND detail.TASK_DETAIL_ID IN
<foreach collection="taskDetailIds" separator="," open="(" close=")" item="taskDetailId">
#{taskDetailId}
</foreach>
</if> </if>
</where> </where>
</select> </select>
...@@ -169,7 +149,7 @@ select ...@@ -169,7 +149,7 @@ select
--身份证号 --身份证号
disable.CERTI_CODE certiCode, disable.CERTI_CODE certiCode,
--所在省市 --所在省市
apply.MEDICAL_AREA medicalArea, (select district_name from ch_fnd_district dis where apply.MEDICAL_AREA = dis.district_code) medicalArea,
mode1.MODE_ID modeId, mode1.MODE_ID modeId,
--服务方式 --服务方式
mode1.mode_name srvModeName, mode1.mode_name srvModeName,
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
d.ACCOUNTS_ALL_COST accountsAllCost, d.ACCOUNTS_ALL_COST accountsAllCost,
d.ACCOUNTS_OVERALL_COST accountsOverallCost, d.ACCOUNTS_OVERALL_COST accountsOverallCost,
d.ACCOUNTS_PERSONAL_COST accountsPersonalCost, d.ACCOUNTS_PERSONAL_COST accountsPersonalCost,
apply.MEDICAL_AREA medicalArea, (select district_name from ch_fnd_district dis where apply.MEDICAL_AREA = dis.district_code) medicalArea,
o.SRV_ORGAN_NAME srvOrganName, o.SRV_ORGAN_NAME srvOrganName,
info.REAL_NAME realName info.REAL_NAME realName
from CH_DISAB_ACCOUNTS_DETAIL d from CH_DISAB_ACCOUNTS_DETAIL d
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
plan.TASK_DETAIL_ID taskDetailId, plan.TASK_DETAIL_ID taskDetailId,
plan.ITEM_NAME itemName, plan.ITEM_NAME itemName,
emp.emp_name empName, emp.emp_name empName,
DECODE(plan.MODE_ID, '1','医疗','2', '养老','3','上门', '4', '异地') srvModeName,
to_char(plan.SRV_PLAN_TIME,'yyyy-MM-dd') srvDate, to_char(plan.SRV_PLAN_TIME,'yyyy-MM-dd') srvDate,
plan.IS_STATUS status plan.IS_STATUS status
from ch_srv_plan plan from ch_srv_plan plan
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
d.ASSESS_COST assessAllCost, d.ASSESS_COST assessAllCost,
organ.organ_name assessOrganName, organ.organ_name assessOrganName,
to_char(d.ACCOUNTS_TIME,'yyyy-MM') accountsTime, to_char(d.ACCOUNTS_TIME,'yyyy-MM') accountsTime,
apply.MEDICAL_AREA medicalArea, (select district_name from ch_fnd_district dis where apply.MEDICAL_AREA = dis.district_code) medicalArea,
to_char(d.assess_time,'yyyy-MM-dd') assessTime, to_char(d.assess_time,'yyyy-MM-dd') assessTime,
emp.REAL_NAME empName emp.REAL_NAME empName
from CH_ASSESS_ACCOUNTS_DETAIL d from CH_ASSESS_ACCOUNTS_DETAIL d
...@@ -28,7 +28,7 @@ SELECT ...@@ -28,7 +28,7 @@ SELECT
t1.ASSESS_COST assessCost, t1.ASSESS_COST assessCost,
to_char(t1.assess_time,'yyyy-MM-dd') assessTime, to_char(t1.assess_time,'yyyy-MM-dd') assessTime,
t4.REAL_NAME empName, t4.REAL_NAME empName,
t2.MEDICAL_AREA medicalArea (select district_name from ch_fnd_district dis where t2.MEDICAL_AREA = dis.district_code) medicalArea,
FROM FROM
CH_ASSESS_ACCOUNTS_DETAIL t1 CH_ASSESS_ACCOUNTS_DETAIL t1
left join CH_DISABLE_APPLY t2 on t1.APPLY_ID = t2.APPLY_ID left join CH_DISABLE_APPLY t2 on t1.APPLY_ID = t2.APPLY_ID
......
...@@ -32,6 +32,6 @@ public class SrvTaskRespVO { ...@@ -32,6 +32,6 @@ public class SrvTaskRespVO {
private Long status; private Long status;
private String srvModeName;
} }
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