Browse Source

街道 能力指数计算修改

master
zxc 4 years ago
parent
commit
9af3fbc6e6
  1. 1
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/indexcal/impl/IndexCalculateStreetServiceImpl.java
  2. 7
      epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/indexcal/CommunityScoreDao.xml

1
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/indexcal/impl/IndexCalculateStreetServiceImpl.java

@ -881,6 +881,7 @@ public class IndexCalculateStreetServiceImpl implements IndexCalculateStreetServ
}
public List<SubCommunityAvgResultDTO> disposeSubAvg(List<SubCommunityAvgResultDTO> avgScore, CalculateCommonFormDTO formDTO){
// 查询处parentAreaCode = xx的组织
List<ScreenProjectOrgDailyDTO> orgIds = customerAgencyDao.selectAgencyByParentAreaCode(formDTO.getCustomerAreaCode());
List<SubCommunityAvgResultDTO> subAvgScores = new ArrayList<>();
orgIds.forEach(org -> {

7
epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/indexcal/CommunityScoreDao.xml

@ -164,8 +164,9 @@
AND fics.index_code = #{indexCode}
)
WHERE sca.DEL_FLAG = 0
AND sca.AREA_CODE LIKE CONCAT(#{areaCode},'%')
AND sca.`LEVEL` = 'community'
GROUP BY parentId
-- AND sca.AREA_CODE LIKE CONCAT(#{areaCode},'%')
AND sca.PARENT_AREA_CODE = #{areaCode}
-- AND sca.`LEVEL` = 'community'
GROUP BY agencyId
</select>
</mapper>

Loading…
Cancel
Save