| | |
| | | <select id="selectGdPatrolTaskPage" resultMap="gdPatrolTaskResultMap"> |
| | | select |
| | | pt.*, |
| | | md.nickname as deviceName, |
| | | md.nickname as device_name, |
| | | wo.work_order_name, |
| | | IFNULL(tr.result_count, 0) as result_count, |
| | | IFNULL(tr.issue_event_count, 0) as issue_event_count |
| | |
| | | <if test="param2.taskStatus != null and param2.taskStatus != ''"> |
| | | and pt.task_status = #{param2.taskStatus} |
| | | </if> |
| | | <if test="param3 != null and param3.size > 0"> |
| | | <if test="param2.deptList != null and param2.deptList.size > 0"> |
| | | and pt.create_dept in |
| | | <foreach collection="param3" item="deptId" open="(" separator="," close=")"> |
| | | <foreach collection="param2.deptList" item="deptId" open="(" separator="," close=")"> |
| | | #{deptId} |
| | | </foreach> |
| | | </if> |