Browse Source

优化响应

develop
wangsixiang 3 months ago
parent
commit
517e1e1860
  1. 2
      zc-business/src/main/resources/mapper/business/DcPerceivedEventsWarningMapper.xml

2
zc-business/src/main/resources/mapper/business/DcPerceivedEventsWarningMapper.xml

@ -628,7 +628,7 @@
UNION ALL SELECT 19 UNION ALL SELECT 20 UNION ALL SELECT 21 UNION ALL SELECT 19 UNION ALL SELECT 20 UNION ALL SELECT 21
UNION ALL SELECT 22 UNION ALL SELECT 23 UNION ALL SELECT 22 UNION ALL SELECT 23
) h ) h
INNER JOIN dc_warning dw LEFT JOIN dc_warning dw
ON HOUR(dw.warning_time) = h.hour_num ON HOUR(dw.warning_time) = h.hour_num
AND dw.warning_time >= DATE_FORMAT(#{currently}, '%Y-%m-01 00:00:00') AND dw.warning_time >= DATE_FORMAT(#{currently}, '%Y-%m-01 00:00:00')
AND dw.warning_time < DATE_FORMAT(DATE_ADD(#{currently}, INTERVAL 1 MONTH), '%Y-%m-01') AND dw.warning_time < DATE_FORMAT(DATE_ADD(#{currently}, INTERVAL 1 MONTH), '%Y-%m-01')

Loading…
Cancel
Save