zhanghua
2022-12-05 66565064a656ffa6dd3d37f7550ddb2316457979
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>