| | |
| | | </sql> |
| | | |
| | | <select id="selectMyBackList" resultType="com.ycl.vo.MyBacklogVO"> |
| | | with tmp as( |
| | | SELECT |
| | | t3.event_source, |
| | | t3.category, |
| | |
| | | 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> |
| | |
| | | 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> |