Browse Source

社区级别计算平均值的时候,分组字段修改

master
zxc 4 years ago
parent
commit
5dd57ff22a
  1. 11
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/indexcal/GridScoreDao.java
  2. 1
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/indexcal/impl/IndexCalculateCommunityServiceImpl.java
  3. 4
      epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/indexcal/GridScoreDao.xml

11
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/indexcal/GridScoreDao.java

@ -77,6 +77,17 @@ public interface GridScoreDao extends BaseDao<GridScoreEntity> {
* @date 2020/8/28 3:20 下午 * @date 2020/8/28 3:20 下午
*/ */
List<SubGridAvgResultDTO> selectSubGridAvgScore(@Param("customerId")String customerId, @Param("monthId")String monthId, @Param("indexCode")String indexCode); List<SubGridAvgResultDTO> selectSubGridAvgScore(@Param("customerId")String customerId, @Param("monthId")String monthId, @Param("indexCode")String indexCode);
/**
* @Description 社区-community下级三大能力平均值
* @Param customerId
* @Param monthId
* @Param indexCode
* @Param quarterId
* @Param yearId
* @author zxc
* @date 2021/5/31 9:34 上午
*/
List<SubGridAvgResultDTO> selectSubGridAvgScoreNew(@Param("customerId")String customerId, @Param("monthId")String monthId, @Param("indexCode")String indexCode,@Param("quarterId")String quarterId,@Param("yearId")String yearId); List<SubGridAvgResultDTO> selectSubGridAvgScoreNew(@Param("customerId")String customerId, @Param("monthId")String monthId, @Param("indexCode")String indexCode,@Param("quarterId")String quarterId,@Param("yearId")String yearId);
/** /**

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

@ -400,6 +400,7 @@ public class IndexCalculateCommunityServiceImpl implements IndexCalculateCommuni
}); });
} }
} else { } else {
// 活动组织次数
List<Map<String, Object>> communityActivityCountList = factIndexServiceAblityOrgMonthlyDao.selectActivityCountMapNew(customerId, monthId,IndexCalConstant.COMMUNITY_LEVEL,quarterId,yearId); List<Map<String, Object>> communityActivityCountList = factIndexServiceAblityOrgMonthlyDao.selectActivityCountMapNew(customerId, monthId,IndexCalConstant.COMMUNITY_LEVEL,quarterId,yearId);
if (CollectionUtils.isEmpty(communityActivityCountList)) { if (CollectionUtils.isEmpty(communityActivityCountList)) {
log.warn(IndexCalConstant.COMMUNITY_SERVICE_ABILITY_NULL); log.warn(IndexCalConstant.COMMUNITY_SERVICE_ABILITY_NULL);

4
epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/indexcal/GridScoreDao.xml

@ -201,6 +201,8 @@
AND sca.AREA_CODE != #{areaCode} AND sca.AREA_CODE != #{areaCode}
GROUP BY figc.agency_id GROUP BY figc.agency_id
</select> </select>
<!-- 【社区-community】下级三大能力平均值 -->
<select id="selectSubGridAvgScoreNew" resultType="com.epmet.dto.screen.result.SubGridAvgResultDTO"> <select id="selectSubGridAvgScoreNew" resultType="com.epmet.dto.screen.result.SubGridAvgResultDTO">
SELECT SELECT
sca.agency_id AS agencyId, sca.agency_id AS agencyId,
@ -221,7 +223,7 @@
WHERE sca.DEL_FLAG = '0' WHERE sca.DEL_FLAG = '0'
AND sca.level = 'community' AND sca.level = 'community'
AND sca.customer_id = #{customerId} AND sca.customer_id = #{customerId}
GROUP BY figc.agency_id GROUP BY sca.agency_id
</select> </select>
<select id="selectSubGridAvgScoreByAreaCodeNew" resultType="com.epmet.dto.screen.result.SubGridAvgResultDTO"> <select id="selectSubGridAvgScoreByAreaCodeNew" resultType="com.epmet.dto.screen.result.SubGridAvgResultDTO">

Loading…
Cancel
Save