chenshudong 1 месяц назад
Родитель
Сommit
5a5cdc419a

+ 7 - 0
airport-personnel/src/main/java/com/sundot/airport/personnel/service/impl/PersonnelNonCadreMonthlyAssessmentServiceImpl.java

@@ -278,6 +278,13 @@ public class PersonnelNonCadreMonthlyAssessmentServiceImpl extends ServiceImpl<P
278 278
      */
279 279
     @Override
280 280
     public void doImprove(PersonnelNonCadreMonthlyAssessment result) {
281
+        if (CollUtil.isNotEmpty(result.getPersonnelMonthlyAssessmentIndicatorDetailList())) {
282
+            result.getPersonnelMonthlyAssessmentIndicatorDetailList().forEach(personnelMonthlyAssessmentIndicatorDetail -> {
283
+                if (CollUtil.isEmpty(personnelMonthlyAssessmentIndicatorDetail.getPersonnelMonthlyAssessmentIndicatorRewardPunishmentDetailList())) {
284
+                    throw new ServiceException("奖罚明细列表为空");
285
+                }
286
+            });
287
+        }
281 288
         // 大队
282 289
         Map<Long, Long> userBrigadeIdMap = new HashMap<>();
283 290
         SysDept brigadeQuery = new SysDept();