|
|
@ -256,28 +256,28 @@ |
|
|
|
AND UNIX_TIMESTAMP(NOW()) - UNIX_TIMESTAMP(CLOSE_CASE_TIME) > 60*60*24*7 |
|
|
|
LIMIT #{no},#{size} |
|
|
|
</select> |
|
|
|
<select id="selectGridTotal" parameterType="java.lang.String" resultType="java.lang.Integer"> |
|
|
|
SELECT |
|
|
|
count( ie.id ) as total |
|
|
|
FROM |
|
|
|
ic_event ie |
|
|
|
WHERE |
|
|
|
ie.DEL_FLAG = '0' |
|
|
|
AND ie.GRID_ID =#{gridId} |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="selectOrgTotal" parameterType="map" resultType="java.lang.Integer"> |
|
|
|
<!-- 事件分类分析 饼图2:下一级组织+直属网格事件数量 --> |
|
|
|
<select id="selectOrgTotal" parameterType="com.epmet.dto.form.IcEventCategoryAnalysisFormDTO" resultType="java.lang.Integer"> |
|
|
|
SELECT |
|
|
|
count( ie.id ) as total |
|
|
|
FROM |
|
|
|
ic_event ie |
|
|
|
inner join ic_event_category ic |
|
|
|
on(ie.ID=ic.IC_EVENT_ID and ic.DEL_FLAG='0') |
|
|
|
WHERE |
|
|
|
ie.DEL_FLAG = '0' |
|
|
|
AND ie.CUSTOMER_ID = #{customerId} |
|
|
|
and ie.HAPPEN_TIME >= #{queryStartTime} |
|
|
|
and ie.HAPPEN_TIME <![CDATA[<=]]> #{queryEndTime} |
|
|
|
<if test="orgType == 'agency'"> |
|
|
|
and ie.GRID_PIDS like CONCAT('%',#{orgId},'%') |
|
|
|
and e.GRID_PIDS like CONCAT(#{gridPids},'%') |
|
|
|
</if> |
|
|
|
<if test="orgType == 'grid'"> |
|
|
|
and ie.GRID_ID=#{orgId} |
|
|
|
AND ie.GRID_ID = #{orgId} |
|
|
|
</if> |
|
|
|
<if test="categoryCode != null and categoryCode != '' "> |
|
|
|
and ic.CATEGORY_CODE like concat(#{categoryCode},'%') |
|
|
|
</if> |
|
|
|
</select> |
|
|
|
|
|
|
|