|
|
@ -181,7 +181,7 @@ public class DeptScoreServiceImpl extends BaseServiceImpl<DeptScoreDao, DeptScor |
|
|
|
public void deleteAndInsertSelfSubScore(CalculateCommonFormDTO formDTO, String indexCode, Map<String, DeptSelfSubScoreEntity> insertMap) { |
|
|
|
int effectRow = 0; |
|
|
|
do { |
|
|
|
deptSelfSubScoreDao.deleteByMonthId(formDTO.getCustomerId(), formDTO.getMonthId(), indexCode); |
|
|
|
effectRow = deptSelfSubScoreDao.deleteByMonthId(formDTO.getCustomerId(), formDTO.getMonthId(), indexCode); |
|
|
|
} while (effectRow > 0); |
|
|
|
|
|
|
|
deptSelfSubScoreDao.insertBatch(new ArrayList<>(insertMap.values())); |
|
|
|