Commit 3c415f35 authored by 朱晨阳's avatar 朱晨阳

总览页面近七日预警统计根据个人场站进行过滤

parent a1ab7d1a
......@@ -95,6 +95,12 @@
WHERE
log.WARNING_SOURCE_TYPE_CODE IN ( SELECT CODE FROM amos_mcb.mcb_data_dictionary WHERE remark = 'OVERVIEW' )
AND date( log.CREATE_DATE ) >= CURDATE( ) - INTERVAL 7 DAY
<if test="projectOrgCodes != null and projectOrgCodes.size() > 0">
AND log.SOURCE_ATTRIBUTION IN
<foreach collection="projectOrgCodes" item="item" open="(" separator="," close=")">
#{item}
</foreach>
</if>
GROUP BY
date( log.CREATE_DATE )) b ON a.date = b.axisData ORDER BY axisData
</select>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment