|
|
@ -175,7 +175,7 @@ public class IndexCalculateDistrictServiceImpl implements IndexCalculateDistrict |
|
|
public void deleteAndInsertSelfSubScore(CalculateCommonFormDTO formDTO, String indexCode, Map<String, AgencySelfSubScoreEntity> insertMap) { |
|
|
public void deleteAndInsertSelfSubScore(CalculateCommonFormDTO formDTO, String indexCode, Map<String, AgencySelfSubScoreEntity> insertMap) { |
|
|
int effectRow = 0; |
|
|
int effectRow = 0; |
|
|
do { |
|
|
do { |
|
|
agencySelfSubScoreDao.deleteByMonthId(formDTO.getCustomerId(), formDTO.getMonthId(), OrgTypeConstant.DISTRICT, indexCode); |
|
|
effectRow = agencySelfSubScoreDao.deleteByMonthId(formDTO.getCustomerId(), formDTO.getMonthId(), OrgTypeConstant.DISTRICT, indexCode); |
|
|
} while (effectRow > 0); |
|
|
} while (effectRow > 0); |
|
|
|
|
|
|
|
|
agencySelfSubScoreDao.insertBatch(new ArrayList<>(insertMap.values())); |
|
|
agencySelfSubScoreDao.insertBatch(new ArrayList<>(insertMap.values())); |
|
|
|