fix:近6个月统计涉密网络统计

pg_adapter
wangxy 6 months ago
parent 03210cbac0
commit ac6afc2520

@ -117,14 +117,12 @@
on t.use_id = d.use_id where t.secrets_type=#{secretsType} on t.use_id = d.use_id where t.secrets_type=#{secretsType}
AND t.recover_date >= #{minDayTime} AND t.recover_date >= #{minDayTime}
AND t.recover_date <= #{maxDayTime} AND t.recover_date <= #{maxDayTime}
and d.destory_state is null
</select> </select>
<select id="countSecretsMonth" resultType="java.lang.Integer" parameterType="PropertyManagerDTO"> <select id="countSecretsMonth" resultType="java.lang.Integer" parameterType="PropertyManagerDTO">
SELECT COUNT(t.*) from td_property_manager t RIGHT JOIN td_property_ement d SELECT COUNT(t.*) from td_property_manager t RIGHT JOIN td_property_ement d
on t.use_id = d.use_id where t.secrets_type=#{secretsType} on t.use_id = d.use_id where t.secrets_type=#{secretsType}
AND t.recover_date &gt;= #{minDayTime} AND t.recover_date &gt;= #{minDayTime}
AND t.recover_date &lt;= #{maxDayTime} AND t.recover_date &lt;= #{maxDayTime}
and d.destory_state is null
</select> </select>
<select id="countDestoryMonth" resultType="java.lang.Integer" parameterType="PropertyManagerDTO"> <select id="countDestoryMonth" resultType="java.lang.Integer" parameterType="PropertyManagerDTO">

Loading…
Cancel
Save