| | |
| | | <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> |
| | | |
| | |
| | | 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> |
| | | |
| | | |