Pārlūkot izejas kodu

aps-报工时校验子表检验等级 必填

sucheng 1 gadu atpakaļ
vecāks
revīzija
402701d1d1

+ 6 - 0
cx-aps/cx-aps-common/src/main/java/com/rongwei/bscommon/sys/service/impl/ApsReportRecordsServiceImpl.java

@@ -568,6 +568,12 @@ public class ApsReportRecordsServiceImpl extends ServiceImpl<ApsReportRecordsDao
         //报工坯料成分
         List<ApsReportBlankCompentDo> apsReportBlankCompentDoList = req.getApsReportBlankCompentDoList();
 
+        for (ApsReportOutputDo apsReportOutputDo : apsReportOutputDoList) {
+            if(ObjectUtil.isEmpty(apsReportOutputDo.getInsepctionlevel())){
+                return R.error("检验等级不能为空");
+            }
+        }
+
         //没有新增,只会更新
         apsReportRecordsDo.setCheckstatus("待检验");