| | |
| | | LEFT JOIN sys_user su ON su.user_id = s.user_id |
| | | WHERE |
| | | s.end_time IS NOT NULL |
| | | AND a.check_unit_id IS NOT NULL |
| | | AND a.check_unit_id IS NULL |
| | | AND su.phone = #{phone} |
| | | AND s.start_time BETWEEN concat( #{date}, '-01-01 00:00:00' ) |
| | | AND concat( #{date}, '-12-31 23:59:59' ) |
| | |
| | | and publish_at between concat(#{date},'-01-01 00:00:00') and concat(#{date},'-12-31 23:59:59') |
| | | and caas.start_time IS NOT NULL |
| | | and caas.end_time IS NOT NULL |
| | | and caas.check_unit_id IS NULL |
| | | group by caa.id) |
| | | |
| | | <if test="checkUnitId != null and checkUnitId!='' "> |