|
@@ -131,11 +131,12 @@ public class YearGroupCoefficientServiceImpl extends ServiceImpl<YearGroupCoeffi
|
|
|
throw new CustomException("年度系数保存失败");
|
|
|
}
|
|
|
|
|
|
- if(null == coefficientDTO.getCoefficientList() || coefficientDTO.getCoefficientList().size()<=0){
|
|
|
- throw new CustomException("年度系数明细为空");
|
|
|
- }
|
|
|
+// if(null == coefficientDTO.getCoefficientList() || coefficientDTO.getCoefficientList().size()<=0){
|
|
|
+// throw new CustomException("年度系数明细为空");
|
|
|
+// }
|
|
|
for (YearOperatingCoefficient coefficient : coefficientDTO.getCoefficientList()){
|
|
|
- coefficient.setYearGroupCoefficientId(coefficient.getId());
|
|
|
+ coefficient.setYearGroupCoefficientId(coefficientDTO.getId());
|
|
|
+ coefficient.setYear(coefficientDTO.getYear());
|
|
|
b = yearOperatingCoefficientService.saveOrUpdate(coefficient);
|
|
|
}
|
|
|
|