From 66565064a656ffa6dd3d37f7550ddb2316457979 Mon Sep 17 00:00:00 2001 From: zhanghua <314079846@qq.com> Date: 星期一, 05 十二月 2022 16:52:25 +0800 Subject: [PATCH] 驳回处理和我的待办 --- ycl-platform/src/main/resources/mapper/caseHandler/DisposeRecordMapper.xml | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ycl-platform/src/main/resources/mapper/caseHandler/DisposeRecordMapper.xml b/ycl-platform/src/main/resources/mapper/caseHandler/DisposeRecordMapper.xml index d4c54ff..d623161 100644 --- a/ycl-platform/src/main/resources/mapper/caseHandler/DisposeRecordMapper.xml +++ b/ycl-platform/src/main/resources/mapper/caseHandler/DisposeRecordMapper.xml @@ -24,6 +24,7 @@ </sql> <select id="selectMyBackList" resultType="com.ycl.vo.MyBacklogVO"> + with tmp as( SELECT t3.event_source, t3.category, @@ -38,7 +39,7 @@ left JOIN ums_base_case t3 ON t2.base_case_id=t3.id <where> t1.admin_id = #{id} and t3.`code` is not null - AND ISNULL( t2.end_time ) + AND t2.state = 0 <if test="code!='' and code!=null"> and t3.`code` LIKE CONCAT('%',#{code},'%') </if> @@ -57,12 +58,12 @@ LEFT JOIN ums_base_case t3 ON t2.base_case_id = t3.id <where> t2.handler_id = #{id} - AND ISNULL( - t2.end_time - ) + AND t2.state = 0 <if test="code!='' and code!=null"> and t3.`code` LIKE CONCAT('%',#{code},'%') </if> </where> + ) + select distinct * from tmp order by create_time </select> </mapper> -- Gitblit v1.8.0