Commit 708e63a1 authored by zengxiaoli@yeah.net's avatar zengxiaoli@yeah.net

评定分配任务检索优化

parent 138a9649
......@@ -88,6 +88,7 @@ public class TaskServiceImpl implements TaskService {
* @param daysRemaining 评定剩余天数
* @param taskStatus 任务状态
* @param isReturn 是否退回
* @param type 0-评定任务分配检索 1-评定报告录入查询失能人员 2-评定任务查询检索
*/
@Override
public Page<TaskDistributionVO> taskDistributionList(Page<TaskDistributionVO> page, String organId, String provincial, String city,
......@@ -98,7 +99,7 @@ public class TaskServiceImpl implements TaskService {
organIds = Arrays.asList(organId.split(","));
}
int aprType=0;
if(type==1){
if(type!=2){
if (StrUtil.isNotBlank(realName)||StrUtil.isNotBlank(certiCode)) {
int count = taskMapper.queryApplyCount(realName,certiCode,2,2);
aprType=count>0?1:0;//count>0 复评已过,查询复评数据,反之查询初评数据。
......
......@@ -67,7 +67,7 @@
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
<where>
<if test="aprType != null and type == 1 ">
<if test="aprType != null and type != 2 ">
and task.APR_TYPE = #{aprType}
</if>
<if test="organIds != null">
......
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