Browse Source

修改各村统计未显示新村名称的问题;

master
luyan 3 years ago
parent
commit
ce06ef6d4e
  1. 6
      epmet-module/gov-project/gov-project-client/src/main/java/com/epmet/dto/IcEventDTO.java
  2. 33
      epmet-module/gov-project/gov-project-server/src/main/resources/mapper/IcEventDao.xml

6
epmet-module/gov-project/gov-project-client/src/main/java/com/epmet/dto/IcEventDTO.java

@ -4,6 +4,7 @@ import lombok.Data;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
/**
@ -72,6 +73,11 @@ public class IcEventDTO implements Serializable {
*/
private String eventType;
/**
* 二类分类Id
*/
private List<String> categoryList;
/**
* 发生时间
*/

33
epmet-module/gov-project/gov-project-server/src/main/resources/mapper/IcEventDao.xml

@ -666,16 +666,15 @@
<select id="getEventRateByGridIds" resultType="com.epmet.dto.result.GridOrVillageEventRateResultDTO">
SELECT
ea.total AS total,
ea.gridId AS orgId,
ea.agencyId AS orgId,
eb.total,
ROUND(eb.total/ea.total,2) AS rate
FROM
(
SELECT
count( e.id ) AS total,
e.GRID_ID AS gridId
e.AGENCY_ID AS agencyId
FROM ic_event e
LEFT JOIN ic_event_reply r ON r.IC_EVENT_ID = e.ID
<where>
e.DEL_FLAG = 0
<if test="null != orgIds and orgIds.size >0">
@ -685,21 +684,21 @@
</foreach>)
</if>
</where>
GROUP BY e.AGENCY_ID
) ea,
(
SELECT count( e.id ) AS total FROM ic_event e
LEFT JOIN ic_event_reply r ON r.IC_EVENT_ID = e.ID
<where>
e.DEL_FLAG = 0 AND r.MANAGE_STATUS = 3
<if test="null != orgIds and orgIds.size >0">
AND e.GRID_ID IN(
<foreach collection="orgIds" item="orgId" separator=",">
#{orgId}
</foreach>)
</if>
</where>
) eb
(
SELECT count( e.id ) AS total FROM ic_event e
LEFT JOIN ic_event_reply r ON r.IC_EVENT_ID = e.ID
<where>
e.DEL_FLAG = 0 AND r.MANAGE_STATUS = 6
<if test="null != orgIds and orgIds.size >0">
AND e.AGENCY_ID IN(
<foreach collection="orgIds" item="orgId" separator=",">
#{orgId}
</foreach>)
</if>
</where>
GROUP BY e.AGENCY_ID
) eb
</select>
</mapper>

Loading…
Cancel
Save