|
|
@ -608,20 +608,43 @@ |
|
|
|
GROUP BY |
|
|
|
temp.gridId |
|
|
|
</select> |
|
|
|
<select id="selectUnResolvedList" resultType="com.epmet.dto.result.UnResolvedResultDTO"> |
|
|
|
|
|
|
|
<resultMap id="UnResolvedResultDTOMap" type="com.epmet.dto.result.UnResolvedResultDTO"> |
|
|
|
<id column="issueId" property="issueId" /> |
|
|
|
<result column="issueTitle" property="issueTitle"/> |
|
|
|
<result column="solution" property="solution"/> |
|
|
|
<result column="closedTime" property="closedTime"/> |
|
|
|
<result column="sourceId" property="sourceId"/> |
|
|
|
<result column="issueSourceType" property="issueSourceType"/> |
|
|
|
<result column="LONGITUDE" property="longitude"/> |
|
|
|
<result column="LATITUDE" property="latitude"/> |
|
|
|
<result column="topicId" property="topicId"/> |
|
|
|
<collection property="issueImgs" ofType="java.lang.String"> |
|
|
|
<result column="url"/> |
|
|
|
</collection> |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<select id="selectUnResolvedList" resultMap="UnResolvedResultDTOMap"> |
|
|
|
SELECT |
|
|
|
ID AS issueId, |
|
|
|
IFNULL(ISSUE_TITLE,'') AS issueTitle, |
|
|
|
IFNULL(CLOSE_REASON,'') AS solution, |
|
|
|
UNIX_TIMESTAMP( CLOSED_TIME ) AS closedTime, |
|
|
|
SOURCE_ID AS sourceId |
|
|
|
i.ID AS issueId, |
|
|
|
IFNULL(i.ISSUE_TITLE,'') AS issueTitle, |
|
|
|
IFNULL(i.CLOSE_REASON,'') AS solution, |
|
|
|
UNIX_TIMESTAMP( i.CLOSED_TIME ) AS closedTime, |
|
|
|
i.SOURCE_ID AS sourceId, |
|
|
|
i.SOURCE_TYPE as issueSourceType, |
|
|
|
i.LONGITUDE, |
|
|
|
i.LATITUDE, |
|
|
|
i.SOURCE_ID as topicId, |
|
|
|
ia.url |
|
|
|
FROM |
|
|
|
issue |
|
|
|
issue i |
|
|
|
left join issue_attachment ia |
|
|
|
on(i.id=ia.BUSINESS_ID and ia.del_flag='0') |
|
|
|
WHERE |
|
|
|
DEL_FLAG = '0' |
|
|
|
AND GRID_ID = #{gridId} |
|
|
|
AND ISSUE_STATUS = 'closed' |
|
|
|
AND RESOLVE_TYPE = 'unresolved' |
|
|
|
i.DEL_FLAG = '0' |
|
|
|
AND i.GRID_ID = #{gridId} |
|
|
|
AND i.ISSUE_STATUS = 'closed' |
|
|
|
AND i.RESOLVE_TYPE = 'unresolved' |
|
|
|
</select> |
|
|
|
|
|
|
|
<!-- 查询表决前50名 --> |
|
|
@ -824,6 +847,8 @@ |
|
|
|
<id column="issueId" property="issueId" /> |
|
|
|
<result column="issueSourceType" property="issueSourceType"/> |
|
|
|
<result column="sourceId" property="sourceId"/> |
|
|
|
<result column="LONGITUDE" property="longitude"/> |
|
|
|
<result column="LATITUDE" property="latitude"/> |
|
|
|
<collection property="issueImgs" ofType="java.lang.String"> |
|
|
|
<result column="url"/> |
|
|
|
</collection> |
|
|
@ -834,6 +859,8 @@ |
|
|
|
i.id AS issueId, |
|
|
|
i.SOURCE_TYPE AS issueSourceType, |
|
|
|
IFNULL( i.SOURCE_ID, '' ) AS sourceId, |
|
|
|
i.LONGITUDE, |
|
|
|
i.LATITUDE, |
|
|
|
ia.url |
|
|
|
FROM |
|
|
|
issue i |
|
|
|