| | |
| | | <result column="latitude" property="latitude"/> |
| | | <result column="event_status" property="eventStatus"/> |
| | | <result column="area_code" property="areaCode"/> |
| | | <result column="event_num" property="eventNum"/> |
| | | <result column="create_user" property="createUser"/> |
| | | <result column="create_dept" property="createDept"/> |
| | | <result column="create_time" property="createTime"/> |
| | |
| | | <result column="latitude" property="latitude"/> |
| | | <result column="event_status" property="eventStatus"/> |
| | | <result column="area_code" property="areaCode"/> |
| | | <result column="event_code" property="eventCode"/> |
| | | <result column="event_num" property="eventNum"/> |
| | | <result column="event_location" property="eventLocation"/> |
| | | <result column="shoot_time" property="shootTime"/> |
| | | <result column="event_image_url" property="eventImageUrl"/> |
| | |
| | | <result column="latitude" property="latitude"/> |
| | | <result column="event_status" property="eventStatus"/> |
| | | <result column="area_code" property="areaCode"/> |
| | | <result column="event_num" property="eventNum"/> |
| | | <result column="is_deleted" property="isDeleted"/> |
| | | </resultMap> |
| | | |
| | |
| | | from ja_gd_clue_event ce |
| | | left join ja_gd_task_result tr on tr.id = ce.result_id 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}, '%') |
| | | </if> |
| | | <if test="onlyMine != null and onlyMine == 1"> |
| | | and ce.dispose_user = #{userId} |
| | | </if> |
| | |
| | | cd.dept_name as distribute_dept_name, |
| | | ce.create_time as distribute_time, |
| | | concat(ce.longitude, ',', ce.latitude) as event_location, |
| | | tr.result_code as event_code, |
| | | ce.event_num as event_num, |
| | | tr.shoot_time as shoot_time, |
| | | tr.result_url as event_image_url |
| | | from ja_gd_clue_event ce |
| | |
| | | ifnull(sum(case when ce.dispose_user = #{userId} then 1 else 0 end), 0) as my_count |
| | | from ja_gd_clue_event ce |
| | | <include refid="gdClueEventDeptWhere"/> |
| | | and ce.event_status in (1, 3) |
| | | <if test="keyword != null and keyword != ''"> |
| | | and ce.event_num like concat('%', #{keyword}, '%') |
| | | </if> |
| | | </select> |
| | | |
| | | |