Commit b12af649 authored by duanzhihong's avatar duanzhihong

查找

parent f769447e
...@@ -59,9 +59,9 @@ public class TaskController { ...@@ -59,9 +59,9 @@ public class TaskController {
public Result<Page<TaskDistributionVO>> taskDistributionList(@RequestParam(defaultValue = "1") Integer pageNum, @RequestParam(defaultValue = "10") Integer pageSize, public Result<Page<TaskDistributionVO>> taskDistributionList(@RequestParam(defaultValue = "1") Integer pageNum, @RequestParam(defaultValue = "10") Integer pageSize,
String organId, String provincial, String city, String organId, String provincial, String city,
String street, String realName, String certiCode, String taskName, String taskTel, String street, String realName, String certiCode, String taskName, String taskTel,
String daysRemaining, String status, String isReturn, String area) { String daysRemaining, String taskStatus, String isReturn, String area) {
Page<TaskDistributionVO> page = new Page<>(pageNum, pageSize); Page<TaskDistributionVO> page = new Page<>(pageNum, pageSize);
page = taskService.taskDistributionList(page, organId, provincial, city, street, realName, certiCode, taskName, taskTel, daysRemaining, status, isReturn, area); page = taskService.taskDistributionList(page, organId, provincial, city, street, realName, certiCode, taskName, taskTel, daysRemaining, taskStatus, isReturn, area);
return Result.success(page); return Result.success(page);
} }
......
...@@ -37,7 +37,7 @@ public interface TaskMapper extends BaseMapper<ChAprTask> { ...@@ -37,7 +37,7 @@ public interface TaskMapper extends BaseMapper<ChAprTask> {
*/ */
Page<TaskDistributionVO> taskDistributionList(Page<TaskDistributionVO> page, List<String> organIds, String provincial, String city, Page<TaskDistributionVO> taskDistributionList(Page<TaskDistributionVO> page, List<String> organIds, String provincial, String city,
String street, String realName, String certiCode, String taskName, String taskTel, String street, String realName, String certiCode, String taskName, String taskTel,
String daysRemaining, String status, String isReturn, String area); String daysRemaining, String taskStatus, String isReturn, String area);
/** /**
* 评定报告录入列表 * 评定报告录入列表
......
...@@ -25,7 +25,7 @@ public interface TaskService { ...@@ -25,7 +25,7 @@ public interface TaskService {
Page<TaskDistributionVO> taskDistributionList(Page<TaskDistributionVO> page, String organId, String provincial, String city, Page<TaskDistributionVO> taskDistributionList(Page<TaskDistributionVO> page, String organId, String provincial, String city,
String street, String realName, String certiCode, String taskName, String taskTel, String street, String realName, String certiCode, String taskName, String taskTel,
String daysRemaining, String status, String isReturn, String area); String daysRemaining, String taskStatus, String isReturn, String area);
List<TaskReportVO> taskReportList(String name, String certiCode, String tel); List<TaskReportVO> taskReportList(String name, String certiCode, String tel);
......
...@@ -67,13 +67,13 @@ public class TaskServiceImpl implements TaskService { ...@@ -67,13 +67,13 @@ public class TaskServiceImpl implements TaskService {
@Override @Override
public Page<TaskDistributionVO> taskDistributionList(Page<TaskDistributionVO> page, String organId, String provincial, String city, public Page<TaskDistributionVO> taskDistributionList(Page<TaskDistributionVO> page, String organId, String provincial, String city,
String street, String realName, String certiCode, String taskName, String taskTel, String street, String realName, String certiCode, String taskName, String taskTel,
String daysRemaining, String status, String isReturn, String area) { String daysRemaining, String taskStatus, String isReturn, String area) {
List<String> organIds = null; List<String> organIds = null;
if (StrUtil.isNotBlank(organId)) { if (StrUtil.isNotBlank(organId)) {
organIds = Arrays.asList(organId.split(",")); organIds = Arrays.asList(organId.split(","));
} }
return taskMapper.taskDistributionList(page, organIds, provincial, city, return taskMapper.taskDistributionList(page, organIds, provincial, city,
street, realName, certiCode, taskName, taskTel, daysRemaining, status, isReturn, area); street, realName, certiCode, taskName, taskTel, daysRemaining, taskStatus, isReturn, area);
} }
/** /**
......
...@@ -90,8 +90,8 @@ ...@@ -90,8 +90,8 @@
<if test="daysRemaining != null and daysRemaining != ''"> <if test="daysRemaining != null and daysRemaining != ''">
and (to_date(to_char(task.last_apr_date,'yyyy-MM-dd'),'yyyy-MM-dd') - to_date(to_char(sysdate,'yyyy-MM-dd'),'yyyy-MM-dd')) + 1 &lt;= #{daysRemaining} and (to_date(to_char(task.last_apr_date,'yyyy-MM-dd'),'yyyy-MM-dd') - to_date(to_char(sysdate,'yyyy-MM-dd'),'yyyy-MM-dd')) + 1 &lt;= #{daysRemaining}
</if> </if>
<if test="status != null and status != ''"> <if test="taskStatus != null and taskStatus != ''">
and task.TASK_STATUS = #{status} and task.TASK_STATUS = #{taskStatus}
</if> </if>
<if test="isReturn != null and isReturn == '0'"> <if test="isReturn != null and isReturn == '0'">
and cate.is_valid = 1 and task.task_status in (0,4,5) and cate.is_valid = 1 and task.task_status in (0,4,5)
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
FROM CH_SRV_BUILD_BED a, CH_DISABLE_INFO b where a.DISAB_INFO_ID = b.DISAB_INFO_ID FROM CH_SRV_BUILD_BED a, CH_DISABLE_INFO b where a.DISAB_INFO_ID = b.DISAB_INFO_ID
AND a.SRV_ORGAN_ID =#{req.srvOrganId} AND a.SRV_ORGAN_ID =#{req.srvOrganId}
<if test="req.realName != null and req.realName != ''"> <if test="req.realName != null and req.realName != ''">
AND upper(a.REAL_NAME) LIKE '%' || upper#{req.realName}) || '%' AND upper(a.REAL_NAME) LIKE '%' || upper(#{req.realName}) || '%'
</if> </if>
<if test="req.certiCode != null and req.certiCode != ''"> <if test="req.certiCode != null and req.certiCode != ''">
AND upper(a.CERTI_CODE) = upper(#{req.certiCode}) AND upper(a.CERTI_CODE) = upper(#{req.certiCode})
......
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