|
|
@ -401,7 +401,7 @@ public class IndexServiceImpl implements IndexService { |
|
|
|
LocalDate now = LocalDate.now().minusMonths(NumConstant.ONE); |
|
|
|
String yearId = String.valueOf(now.getYear()); |
|
|
|
if("street".equals(formDTO.getType())){ |
|
|
|
List<SubAgencyIndexRankResultDTO> streetList = screenIndexDataMonthlyDao.selectSubStreetByAreaCode(yearId,formDTO.getAreaCode(),formDTO.getTopNum()); |
|
|
|
List<SubAgencyIndexRankResultDTO> streetList = screenIndexDataMonthlyDao.selectSubStreetByAreaCode(formDTO.getCustomerId(),yearId,formDTO.getAreaCode(),formDTO.getTopNum()); |
|
|
|
// 小数四舍五入
|
|
|
|
streetList.forEach(indexRank -> { |
|
|
|
indexRank.setPartyDevAbility(getRound(indexRank.getPartyDevAbility())); |
|
|
@ -411,7 +411,7 @@ public class IndexServiceImpl implements IndexService { |
|
|
|
}); |
|
|
|
return streetList; |
|
|
|
} |
|
|
|
List<SubAgencyIndexRankResultDTO> gridList = screenIndexDataMonthlyDao.selectSubGridByAreaCode(yearId,formDTO.getAreaCode(),formDTO.getTopNum()); |
|
|
|
List<SubAgencyIndexRankResultDTO> gridList = screenIndexDataMonthlyDao.selectSubGridByAreaCode(formDTO.getCustomerId(),yearId,formDTO.getAreaCode(),formDTO.getTopNum()); |
|
|
|
// 小数四舍五入
|
|
|
|
gridList.forEach(indexRank -> { |
|
|
|
indexRank.setPartyDevAbility(getRound(indexRank.getPartyDevAbility())); |
|
|
|