Browse Source

Merge branch 'dev'

dev_shibei_match
sunyuchao 5 years ago
parent
commit
725b44149b
  1. 3
      epmet-module/data-aggregator/data-aggregator-server/src/main/java/com/epmet/dataaggre/service/govissue/impl/GovIssueServiceImpl.java
  2. 2
      epmet-module/data-aggregator/data-aggregator-server/src/main/resources/mapper/govissue/IssueDao.xml
  3. 28
      epmet-module/data-aggregator/data-aggregator-server/src/main/resources/mapper/govproject/ProjectDao.xml

3
epmet-module/data-aggregator/data-aggregator-server/src/main/java/com/epmet/dataaggre/service/govissue/impl/GovIssueServiceImpl.java

@ -280,8 +280,7 @@ public class GovIssueServiceImpl implements GovIssueService {
shiftProject.setStatus(project.getStatus());
return shiftProject;
})).collect(Collectors.toList());
List<ShiftProjectIssueListResultDTO> result = resultList.stream().sorted(Comparator.comparing(ShiftProjectIssueListResultDTO::getCount, Comparator.reverseOrder()).thenComparing(ShiftProjectIssueListResultDTO::getShiftedTime, Comparator.reverseOrder())).collect(Collectors.toList());
return result;
return resultList;
}
/**

2
epmet-module/data-aggregator/data-aggregator-server/src/main/resources/mapper/govissue/IssueDao.xml

@ -75,7 +75,7 @@
AND i.issue_status = 'shift_project'
AND i.org_id_path like concat('%', #{agencyId}, '%')
ORDER BY
count DESC, i.created_time ASC
count DESC, i.shifted_time DESC
LIMIT #{pageNo}, #{pageSize}
</select>

28
epmet-module/data-aggregator/data-aggregator-server/src/main/resources/mapper/govproject/ProjectDao.xml

@ -40,19 +40,19 @@
<!-- 查询项目信息 -->
<select id="selectProjectInfoClosed" resultType="com.epmet.dataaggre.dto.govissue.result.IssueListResultDTO">
SELECT
p.ID AS projectId,
p.ORIGIN_ID AS issueId,
p.`STATUS`,
pp.PUBLIC_REPLY AS closedReason,
UNIX_TIMESTAMP( p.UPDATED_TIME ) AS operationTime
p.ID AS projectId,
p.ORIGIN_ID AS issueId,
p.`STATUS`,
pp.PUBLIC_REPLY AS closedReason,
UNIX_TIMESTAMP( p.UPDATED_TIME ) AS operationTime
FROM project p
LEFT JOIN project_process pp ON pp.PROJECT_ID = p.ID AND pp.OPERATION = 'close'
WHERE p.DEL_FLAG = '0'
AND pp.DEL_FLAG = '0'
AND
<foreach collection="issueIds" item="issueId" separator=" OR ">
p.ORIGIN_ID = #{issueId}
</foreach>
AND pp.DEL_FLAG = '0'
AND(
<foreach collection="issueIds" item="issueId" separator=" OR ">
p.ORIGIN_ID = #{issueId}
</foreach>)
</select>
<!-- 查询项目信息【处理中】 -->
@ -79,10 +79,10 @@
AND ps.DEL_FLAG = '0'
AND p.`STATUS` = 'pending'
AND ps.IS_HANDLE = 'unhandled'
AND
AND(
<foreach collection="issueIds" item="issueId" separator=" OR ">
p.ORIGIN_ID = #{issueId}
</foreach>
p.ORIGIN_ID = #{issueId}
</foreach>)
</select>
<select id="selectShiftProjectList" resultType="com.epmet.dataaggre.dto.govproject.ProjectDTO">
@ -108,7 +108,7 @@
p.origin_id = #{issueId}
</foreach>
ORDER BY
p.created_time ASC
p.created_time DESC
</select>
<select id="selectDepartmentNameList" resultType="java.lang.String">

Loading…
Cancel
Save