| | |
| | | <result column="distribute_dept_name" property="distributeDeptName"/> |
| | | <result column="patrol_task_name" property="patrolTaskName"/> |
| | | <result column="attachment_type" property="attachmentType"/> |
| | | <result column="event_name" property="eventName"/> |
| | | </resultMap> |
| | | |
| | | <resultMap id="gdTaskResultExcelResultMap" type="org.sxkj.gd.workorder.excel.GdTaskResultExcel"> |
| | |
| | | <if test="gdTaskResult.createUser != null"> |
| | | AND tr.create_user = #{gdTaskResult.createUser} |
| | | </if> |
| | | <if test="gdTaskResult.attachmentType != null"> |
| | | AND tr.attachment_type = #{gdTaskResult.attachmentType} |
| | | </if> |
| | | ORDER BY tr.create_time DESC |
| | | </select> |
| | | |
| | |
| | | SELECT |
| | | tr.*, |
| | | COALESCE ( bu.real_name, bu.NAME ) AS distribute_user_name, |
| | | bd.dept_name AS distribute_dept_name |
| | | bd.dept_name AS distribute_dept_name, |
| | | ce.event_name |
| | | FROM |
| | | ja_gd_task_result tr |
| | | LEFT JOIN ( |
| | |
| | | WHERE |
| | | tr.is_deleted = 0 |
| | | AND tr.patrol_task_id = #{patrolTaskId} |
| | | <if test="attachmentTypes != null and attachmentTypes.size() > 0"> |
| | | AND tr.attachment_type IN |
| | | <foreach collection="attachmentTypes" item="type" open="(" separator="," close=")"> |
| | | #{type} |
| | | </foreach> |
| | | </if> |
| | | </select> |
| | | |
| | | |