|
@ -641,11 +641,15 @@ public class FactIndexCollectServiceImpl implements FactIndexCollectService { |
|
|
List<ScreenCustomerAgencyEntity> parentAgencyList = screenCustomerAgencyDao.selectListAgencyInfo(customerId); |
|
|
List<ScreenCustomerAgencyEntity> parentAgencyList = screenCustomerAgencyDao.selectListAgencyInfo(customerId); |
|
|
int j = 0; |
|
|
int j = 0; |
|
|
for(Map.Entry<String,List<AgencyScoreDTO>> agencyScore : collect.entrySet()){ |
|
|
for(Map.Entry<String,List<AgencyScoreDTO>> agencyScore : collect.entrySet()){ |
|
|
|
|
|
if (NumConstant.ZERO_STR.equals(agencyScore.getKey())) { |
|
|
|
|
|
log.warn("insertIndexDataMonthlyByAgencyScore agencyyId is 0"); |
|
|
|
|
|
continue; |
|
|
|
|
|
} |
|
|
IndexDataMonthlyFormDTO monthlyFormDTO = new IndexDataMonthlyFormDTO(); |
|
|
IndexDataMonthlyFormDTO monthlyFormDTO = new IndexDataMonthlyFormDTO(); |
|
|
// 给4个指数 赋默认值
|
|
|
// 给4个指数 赋默认值
|
|
|
monthlyFormDTO = this.setIndexDefaultValueFor(monthlyFormDTO); |
|
|
monthlyFormDTO = this.setIndexDefaultValueFor(monthlyFormDTO); |
|
|
for ( int i = 0; i < agencyScore.getValue().size(); i++){ |
|
|
for (int i = 0; i < agencyScore.getValue().size(); i++) { |
|
|
if (NumConstant.ONE_STR.equals(agencyScore.getValue().get(i).getIsTotal())){ |
|
|
if (NumConstant.ONE_STR.equals(agencyScore.getValue().get(i).getIsTotal())) { |
|
|
// 是总分 总指数 = IS_TOTAL = 1
|
|
|
// 是总分 总指数 = IS_TOTAL = 1
|
|
|
monthlyFormDTO.setIndexTotal(agencyScore.getValue().get(i).getScore()); |
|
|
monthlyFormDTO.setIndexTotal(agencyScore.getValue().get(i).getScore()); |
|
|
} else { |
|
|
} else { |
|
|