Browse Source

网格相关 党建能力

dev_shibei_match
zxc 5 years ago
parent
commit
ef94b33582
  1. 5
      epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/extract/result/GridUserCountResultDTO.java
  2. 8
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/controller/DemoController.java
  3. 6
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/extract/impl/CalGridIndexServiceImpl.java

5
epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/extract/result/GridUserCountResultDTO.java

@ -1,5 +1,6 @@
package com.epmet.dto.extract.result;
import com.epmet.commons.tools.constant.NumConstant;
import lombok.Data;
import java.io.Serializable;
@ -16,12 +17,12 @@ public class GridUserCountResultDTO implements Serializable {
/**
* 注册居民本月增量
*/
private Integer userCount;
private Integer userCount = NumConstant.ZERO;
/**
* 注册党员本月增量
*/
private Integer partyCount;
private Integer partyCount = NumConstant.ZERO;
/**
* 网格ID

8
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/controller/DemoController.java

@ -544,16 +544,16 @@ public class DemoController {
@PostMapping("gridparty")
public void gridParty(){
// String customerId = "3ef7e4bb195eb9e622d68b52509aa940";
String customerId = "epmettest";
String customerId = "3ef7e4bb195eb9e622d68b52509aa940";
// String customerId = "epmettest";
String monthId = "202008";
calGridIndexService.calGridIndexPartyAbility(customerId,monthId);
}
@PostMapping("gridgovern")
public void gridGovern(){
// String customerId = "3ef7e4bb195eb9e622d68b52509aa940";
String customerId = "epmettest";
String customerId = "3ef7e4bb195eb9e622d68b52509aa940";
// String customerId = "epmettest";
String monthId = "202008";
calGridIndexService.calGridIndexGovernAbility(customerId,monthId);
}

6
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/extract/impl/CalGridIndexServiceImpl.java

@ -138,7 +138,8 @@ public class CalGridIndexServiceImpl implements CalGridIndexService {
if (!CollectionUtils.isEmpty(gridUserCountList)){
gridUserCountList.forEach(count -> {
if (r.getGridId().equals(count.getGridId())){
BeanUtils.copyProperties(count,r);
r.setUserCount(count.getUserCount());
r.setPartyCount(count.getPartyCount());
}
});
}
@ -320,7 +321,8 @@ public class CalGridIndexServiceImpl implements CalGridIndexService {
if (!CollectionUtils.isEmpty(gridIssueTotalList)) {
gridIssueTotalList.forEach(total -> {
if (r.getGridId().equals(total.getGridId())) {
BeanUtils.copyProperties(total, r);
r.setIssueTotal(total.getIssueTotal());
r.setAvgIssueCount(total.getAvgIssueCount());
}
});
}

Loading…
Cancel
Save