Browse Source

感知统计相关接口

develop
zhao-meiyu 10 months ago
parent
commit
865f44e91c
  1. 5
      zc-business/src/main/resources/mapper/business/DcPerceivedEventsWarningMapper.xml

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

@ -223,8 +223,9 @@
WHEN MONTH(create_time) BETWEEN 7 AND 9 THEN '第三季度'
ELSE '第四季度'
END AS QUARTER
from dc_warning where stake_mark_id=#{stakeMark}
AND direction=#{direction}
from dc_warning where stake_mark_id=#{stakeMark} and
YEAR(create_time) =DATE_FORMAT(#{createTime},'%Y')
AND direction=#{direction}
GROUP BY QUARTER
ORDER BY QUARTER;
</select>

Loading…
Cancel
Save