|
|
@ -152,7 +152,7 @@ public class DeptScoreServiceImpl extends BaseServiceImpl<DeptScoreDao, DeptScor |
|
|
|
indexMap.forEach((key, indexInputVO) -> { |
|
|
|
if (StringUtils.isNotBlank(indexCodeFieldReService.getFieldNameByIndexCode(key))) { |
|
|
|
//对应的数值
|
|
|
|
String sampleValueStr = (String) recordMap.get(indexCodeFieldReService.getFieldNameByIndexCode(key)); |
|
|
|
String sampleValueStr =String.valueOf(recordMap.get(indexCodeFieldReService.getFieldNameByIndexCode(key))); |
|
|
|
//构造样本值对象
|
|
|
|
SampleValue<BigDecimal> currentGridIndexValue = new SampleValue((String) recordMap.get(IndexCalConstant.DEPT_ID), new BigDecimal(sampleValueStr)); |
|
|
|
indexInputVO.getIndexValueVOs().add(currentGridIndexValue); |
|
|
@ -194,6 +194,7 @@ public class DeptScoreServiceImpl extends BaseServiceImpl<DeptScoreDao, DeptScor |
|
|
|
deptScoreEntity.setYearId(yearId); |
|
|
|
deptScoreEntity.setMonthId(formDTO.getMonthId()); |
|
|
|
deptScoreEntity.setScore(governAblityScore); |
|
|
|
deptScoreDao.deleteByDeptIdAndMonthId(formDTO.getCustomerId(),formDTO.getMonthId(),deptId); |
|
|
|
deptScoreDao.insert(deptScoreEntity); |
|
|
|
}); |
|
|
|
} |
|
|
|