|
|
|
@ -41,10 +41,7 @@ |
|
|
|
<select id="statisticalLawEnforcementItem" parameterType="StatisticalVo" resultMap="StatisticalVoResult"> |
|
|
|
select law_enforcement_item,count(*) as total from enforcement_registration er |
|
|
|
where DATE_FORMAT(er.enforcement_time, '%Y-%m') = DATE_FORMAT(CURDATE(), '%Y-%m') and law_enforcement_item is not null |
|
|
|
<if test="params.dataScope != null and params.dataScope != ''"> |
|
|
|
<!-- 数据范围过滤 --> |
|
|
|
${params.dataScope} |
|
|
|
</if> |
|
|
|
|
|
|
|
GROUP BY law_enforcement_item |
|
|
|
</select> |
|
|
|
<select id="statisticalLawEnforcer" parameterType="StatisticalVo" resultMap="StatisticalVoResult"> |
|
|
|
@ -66,10 +63,6 @@ |
|
|
|
enforcement_registration er |
|
|
|
<where> |
|
|
|
and DATE_FORMAT( er.enforcement_time, '%Y%m' ) = DATE_FORMAT( CURDATE(), '%Y%m' ) |
|
|
|
<if test="params.dataScope != null and params.dataScope != ''"> |
|
|
|
<!-- 数据范围过滤 --> |
|
|
|
${params.dataScope} |
|
|
|
</if> |
|
|
|
</where> |
|
|
|
GROUP BY |
|
|
|
law_enforcer_id_two) t GROUP BY t.law_enforcer_id order by t.total desc |
|
|
|
@ -78,8 +71,6 @@ |
|
|
|
SELECT er.law_enforcer, er.law_enforcer_id, count(1) AS total |
|
|
|
FROM enforcement_registration er |
|
|
|
WHERE DATE_FORMAT( er.enforcement_time, '%Y%m' ) = DATE_FORMAT( CURDATE(), '%Y%m' ) |
|
|
|
<!-- 数据范围过滤 --> |
|
|
|
${params.dataScope} |
|
|
|
GROUP BY er.law_enforcer_id order by total desc |
|
|
|
</select> |
|
|
|
<select id="statisticalEnterpriseType" parameterType="StatisticalVo" resultMap="StatisticalVoResult"> |
|
|
|
@ -96,10 +87,6 @@ |
|
|
|
on ei.enterprise_type = sdd.dict_value |
|
|
|
<where> |
|
|
|
and DATE_FORMAT( er.enforcement_time, '%Y%m' ) = DATE_FORMAT( CURDATE(), '%Y%m' ) |
|
|
|
<if test="params.dataScope != null and params.dataScope != ''"> |
|
|
|
<!-- 数据范围过滤 --> |
|
|
|
${params.dataScope} |
|
|
|
</if> |
|
|
|
</where> |
|
|
|
|
|
|
|
</select> |
|
|
|
@ -110,10 +97,6 @@ |
|
|
|
from enforcement_registration er |
|
|
|
<where> |
|
|
|
AND DATE_FORMAT(er.enforcement_time, '%Y%m' ) = DATE_FORMAT( CURDATE(), '%Y%m' ) |
|
|
|
<if test="params.dataScope != null and params.dataScope != ''"> |
|
|
|
<!-- 数据范围过滤 --> |
|
|
|
${params.dataScope} |
|
|
|
</if> |
|
|
|
</where> |
|
|
|
</select> |
|
|
|
|
|
|
|
@ -145,8 +128,6 @@ |
|
|
|
<if test="checkCategory!= null and checkCategory!= ''"> |
|
|
|
AND er.check_category = #{checkCategory} |
|
|
|
</if> |
|
|
|
<!-- 数据范围过滤 --> |
|
|
|
${params.dataScope} |
|
|
|
</where> |
|
|
|
GROUP BY er.law_enforcement_id ORDER BY total DESC limit 100 |
|
|
|
</select> |
|
|
|
@ -174,8 +155,6 @@ |
|
|
|
<if test="checkCategory!= null and checkCategory!= ''"> |
|
|
|
AND er.check_category = #{checkCategory} |
|
|
|
</if> |
|
|
|
<!-- 数据范围过滤 --> |
|
|
|
${params.dataScope} |
|
|
|
</where> |
|
|
|
GROUP BY er.law_enforcer_id ORDER BY total DESC limit 100 |
|
|
|
</select> |
|
|
|
@ -205,8 +184,6 @@ |
|
|
|
<if test="checkCategory!= null and checkCategory!= ''"> |
|
|
|
AND r.check_category = #{checkCategory} |
|
|
|
</if> |
|
|
|
<!-- 数据范围过滤 --> |
|
|
|
${params.dataScope} |
|
|
|
GROUP BY d.id ORDER BY total DESC limit 100 |
|
|
|
</select> |
|
|
|
|
|
|
|
@ -233,8 +210,6 @@ |
|
|
|
<if test="checkCategory!= null and checkCategory!= ''"> |
|
|
|
AND r.check_category = #{checkCategory} |
|
|
|
</if> |
|
|
|
<!-- 数据范围过滤 --> |
|
|
|
${params.dataScope} |
|
|
|
</where> |
|
|
|
GROUP BY i.company_org_type ORDER BY total DESC limit 100 |
|
|
|
</select> |
|
|
|
@ -257,8 +232,6 @@ |
|
|
|
<if test="checkCategory != null and checkCategory != ''"> |
|
|
|
AND check_category = #{checkCategory} |
|
|
|
</if> |
|
|
|
<!-- 数据范围过滤 --> |
|
|
|
${params.dataScope} |
|
|
|
</where> |
|
|
|
GROUP BY DATE_FORMAT(enforcement_time, '%Y-%m-%d') ORDER BY enforcement_time ASC |
|
|
|
</select> |
|
|
|
@ -280,8 +253,6 @@ |
|
|
|
<if test="checkCategory != null and checkCategory != ''"> |
|
|
|
AND check_category = #{checkCategory} |
|
|
|
</if> |
|
|
|
<!-- 数据范围过滤 --> |
|
|
|
${params.dataScope} |
|
|
|
</where> |
|
|
|
GROUP BY enterprise_number ORDER BY total desc |
|
|
|
</select> |
|
|
|
@ -310,8 +281,6 @@ |
|
|
|
<if test="checkCategory!= null and checkCategory!= ''"> |
|
|
|
AND er.check_category = #{checkCategory} |
|
|
|
</if> |
|
|
|
<!-- 数据范围过滤 --> |
|
|
|
${params.dataScope} |
|
|
|
</where> |
|
|
|
GROUP BY DATE_FORMAT(enforcement_time, '%Y-%m-%d'), er.enterprise_number ORDER BY total DESC limit 100 |
|
|
|
</select> |
|
|
|
|