Browse Source

阈值保存 %号前面的数字;党员总分的pid为0

dev_shibei_match
jianjun 5 years ago
parent
commit
e9eb500323
  1. 2
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/model/IndexExcelDataListener.java
  2. 2
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/indexcal/impl/CpcIndexCalculateServiceImpl.java

2
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/model/IndexExcelDataListener.java

@ -92,7 +92,7 @@ public class IndexExcelDataListener extends AnalysisEventListener<IndexModel> {
threshold = "-1";
} else if (data.getThreshold().contains("%")) {
String thresholdStr = data.getThreshold().replace("%", "");
threshold = new BigDecimal(thresholdStr).divide(new BigDecimal(100), 4, RoundingMode.HALF_UP).toString();
threshold = new BigDecimal(thresholdStr).toString();
}
data.setThreshold(threshold);
}

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

@ -100,7 +100,7 @@ public class CpcIndexCalculateServiceImpl implements CpcIndexCalculateService {
totalEntity.setIsTotal(NumConstant.ONE_STR);
totalEntity.setIndexCode(IndexCodeEnum.DANG_YUAN_XIANG_GUAN.getCode());
totalEntity.setScore(new BigDecimal(NumConstant.ZERO));
totalEntity.setAllParentIndexCode(indexGroupDetailEntity.getAllParentIndexCode());
totalEntity.setAllParentIndexCode(NumConstant.ZERO_STR);
cpcScoreTotalMap.put(userId, totalEntity);
}
//自建群活跃度——议题转项目率 有阈值 >60%按60%算

Loading…
Cancel
Save