| | |
| | | <if test="haveMainHazard != null and haveMainHazard == 1 "> |
| | | and (main_hazard != '无' and main_hazard != ' ') |
| | | </if> |
| | | <if test="searchCheckUserId != null "> |
| | | and a.id in (select daily_safety_inspection_id from daily_safety_inspection_user where check_user_id = #{searchCheckUserId}) |
| | | <if test="searchCheckUserIds != null and !searchCheckUserIds.isEmpty()"> |
| | | and a.id in ( |
| | | select distinct daily_safety_inspection_id from daily_safety_inspection_user |
| | | where check_user_id in <foreach collection="searchCheckUserIds" item="group" open="(" separator="," close=")"> |
| | | #{group} |
| | | </foreach> |
| | | ) |
| | | </if> |
| | | order by a.create_time desc |
| | | </select> |