| | |
| | | tr.result_url as event_image_url, |
| | | ce.create_time as create_time |
| | | from ja_gd_clue_event ce |
| | | left join ja_gd_task_result tr on tr.id = ce.result_id::VARCHAR and tr.is_deleted = 0 |
| | | left join ja_gd_task_result tr on tr.id::VARCHAR = ce.result_id::VARCHAR and tr.is_deleted = 0 |
| | | <include refid="gdClueEventDeptWhere"/> |
| | | and ce.event_status in (1, 3) |
| | | <if test="keyword != null and keyword != ''"> |
| | | and ce.event_num like concat('%', #{keyword}, '%') |
| | | and ce.event_num::VARCHAR like concat('%', #{keyword}, '%') |
| | | </if> |
| | | <if test="onlyMine != null and onlyMine == 1"> |
| | | and ce.dispose_user = #{userId} |