Commit ede26ad7 authored by Zengxiaoli's avatar Zengxiaoli

失能人员检索逻辑优化

分配任务历史查询条件修改
parent e81f2163
...@@ -63,7 +63,7 @@ public class TaskController { ...@@ -63,7 +63,7 @@ public class TaskController {
* @param isReturn 是否退回 * @param isReturn 是否退回
* @param pageNum 当前页 * @param pageNum 当前页
* @param pageSize 每页几条数据 * @param pageSize 每页几条数据
* @param type 1评定报告录入查询失能人员 * @param type 0-评定任务分配检索 1-评定报告录入查询失能人员 2-评定任务查询检索
*/ */
@RequestMapping("/taskDistributionList") @RequestMapping("/taskDistributionList")
...@@ -284,8 +284,8 @@ public class TaskController { ...@@ -284,8 +284,8 @@ public class TaskController {
* 分配历史信息列表 * 分配历史信息列表
*/ */
@RequestMapping("/allotTaskHisList") @RequestMapping("/allotTaskHisList")
public Result<List<AllotTaskHisVO>> allotTaskHisList(Integer taskId) { public Result<List<AllotTaskHisVO>> allotTaskHisList(Integer disabId) {
List<AllotTaskHisVO> list = taskService.allotTaskHisList(taskId); List<AllotTaskHisVO> list = taskService.allotTaskHisList(disabId);
return Result.success(list); return Result.success(list);
} }
......
...@@ -69,7 +69,7 @@ public interface TaskMapper extends BaseMapper<ChAprTask> { ...@@ -69,7 +69,7 @@ public interface TaskMapper extends BaseMapper<ChAprTask> {
TaskGroupInfoListInfoVO taskGroupInfoListInfo(String pushId); TaskGroupInfoListInfoVO taskGroupInfoListInfo(String pushId);
List<AllotTaskHisVO> allotTaskHisList(@Param("taskId") Integer taskId); List<AllotTaskHisVO> allotTaskHisList(@Param("disabId") Integer disabId);
Page<ReTaskDistributionVO> reTaskDistributionList(Page<ReTaskDistributionVO> page, @Param("organIds") List<Long> organIds, String districtProvincial, String districtCity, String districtArea, String realName, String certiCode); Page<ReTaskDistributionVO> reTaskDistributionList(Page<ReTaskDistributionVO> page, @Param("organIds") List<Long> organIds, String districtProvincial, String districtCity, String districtArea, String realName, String certiCode);
......
...@@ -54,7 +54,7 @@ public interface TaskService { ...@@ -54,7 +54,7 @@ public interface TaskService {
TaskGroupInfoListInfoVO taskGroupInfoListInfo(String pushId); TaskGroupInfoListInfoVO taskGroupInfoListInfo(String pushId);
List<AllotTaskHisVO> allotTaskHisList(Integer taskId); List<AllotTaskHisVO> allotTaskHisList(Integer disabId);
Result<Object> updatePushTimeAndRemark(String pushId, Date timeDate, String remark); Result<Object> updatePushTimeAndRemark(String pushId, Date timeDate, String remark);
......
...@@ -97,12 +97,13 @@ public class TaskServiceImpl implements TaskService { ...@@ -97,12 +97,13 @@ public class TaskServiceImpl implements TaskService {
if (StrUtil.isNotBlank(organId)) { if (StrUtil.isNotBlank(organId)) {
organIds = Arrays.asList(organId.split(",")); organIds = Arrays.asList(organId.split(","));
} }
int aprType=0; int aprType=0;
if(type==1){
if (StrUtil.isNotBlank(realName)||StrUtil.isNotBlank(certiCode)) { if (StrUtil.isNotBlank(realName)||StrUtil.isNotBlank(certiCode)) {
int count = taskMapper.queryApplyCount(realName,certiCode,2,2); int count = taskMapper.queryApplyCount(realName,certiCode,2,2);
aprType=count>0?1:0;//count>0 复评已过,查询复评数据,反之查询初评数据。 aprType=count>0?1:0;//count>0 复评已过,查询复评数据,反之查询初评数据。
} }
}
return taskMapper.taskDistributionList(page, organIds, provincial, city, return taskMapper.taskDistributionList(page, organIds, provincial, city,
street, realName, certiCode, taskName, taskTel, daysRemaining, taskStatus, isReturn, area,type,aprType); street, realName, certiCode, taskName, taskTel, daysRemaining, taskStatus, isReturn, area,type,aprType);
} }
...@@ -577,8 +578,8 @@ public class TaskServiceImpl implements TaskService { ...@@ -577,8 +578,8 @@ public class TaskServiceImpl implements TaskService {
* 分配历史信息列表 * 分配历史信息列表
*/ */
@Override @Override
public List<AllotTaskHisVO> allotTaskHisList(Integer taskId) { public List<AllotTaskHisVO> allotTaskHisList(Integer disabId) {
return taskMapper.allotTaskHisList(taskId); return taskMapper.allotTaskHisList(disabId);
} }
/** /**
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
task.apply_id applyId, task.apply_id applyId,
fndOrgan.ORGAN_NAME organName, fndOrgan.ORGAN_NAME organName,
task.ORGAN_ID aprOrganId, task.ORGAN_ID aprOrganId,
disable.disab_info_id disbleInfoId,
(select DISTRICT_NAME from CH_FND_DISTRICT dis where task.DISTRICT_PROVINCIAL = dis.DISTRICT_CODE) districtProvincial, (select DISTRICT_NAME from CH_FND_DISTRICT dis where task.DISTRICT_PROVINCIAL = dis.DISTRICT_CODE) districtProvincial,
(select DISTRICT_NAME from CH_FND_DISTRICT dis where task.DISTRICT_CITY = dis.DISTRICT_CODE) districPity, (select DISTRICT_NAME from CH_FND_DISTRICT dis where task.DISTRICT_CITY = dis.DISTRICT_CODE) districPity,
(select DISTRICT_NAME from CH_FND_DISTRICT dis where task.DISTRICT_AREA = dis.DISTRICT_CODE) districtArea, (select DISTRICT_NAME from CH_FND_DISTRICT dis where task.DISTRICT_AREA = dis.DISTRICT_CODE) districtArea,
...@@ -66,7 +67,7 @@ ...@@ -66,7 +67,7 @@
left join ch_refuse_reason reason on push.refuse_reason = reason.refuse_reason_id left join ch_refuse_reason reason on push.refuse_reason = reason.refuse_reason_id
left join CH_FND_ORGAN fndOrgan on task.ORGAN_ID = fndOrgan.ORGAN_ID left join CH_FND_ORGAN fndOrgan on task.ORGAN_ID = fndOrgan.ORGAN_ID
<where> <where>
<if test="aprType != null "> <if test="aprType != null and type == 1 ">
and task.APR_TYPE = #{aprType} and task.APR_TYPE = #{aprType}
</if> </if>
<if test="organIds != null"> <if test="organIds != null">
...@@ -401,9 +402,10 @@ ...@@ -401,9 +402,10 @@
push.Refuse_remark refuseRemark push.Refuse_remark refuseRemark
FROM ch_apr_task_push_his push FROM ch_apr_task_push_his push
LEFT JOIN ch_apr_task task ON push.TASK_ID = task.TASK_ID LEFT JOIN ch_apr_task task ON push.TASK_ID = task.TASK_ID
left join ch_disable_info disable on task.disable_info_id = disable.disab_info_id
LEFT JOIN ch_apr_emp emp on push.emp_id = emp.emp_id LEFT JOIN ch_apr_emp emp on push.emp_id = emp.emp_id
left join ch_apr_organ organ on emp.apr_organ_id = organ.apr_organ_id left join ch_apr_organ organ on emp.apr_organ_id = organ.apr_organ_id
WHERE push.TASK_ID = #{taskId} WHERE disable.disab_info_id= #{disabId}
</select> </select>
<select id="reTaskDistributionList" resultType="com.hungraim.ltc.pojo.vo.assessment.ReTaskDistributionVO"> <select id="reTaskDistributionList" resultType="com.hungraim.ltc.pojo.vo.assessment.ReTaskDistributionVO">
......
...@@ -99,6 +99,10 @@ public class TaskDistributionVO { ...@@ -99,6 +99,10 @@ public class TaskDistributionVO {
//20230306业务类型 1-报告录入检索调用 //20230306业务类型 1-报告录入检索调用
private int type; private int type;
//失能人员id
private Integer disbleInfoId;
} }
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