pdi提交修改字段

This commit is contained in:
yf001217 2026-06-15 19:53:34 +08:00
parent 94f9008e75
commit a21b9245f5
1 changed files with 1 additions and 4 deletions

View File

@ -229,11 +229,8 @@ public class QmsPdiInspectionResultsControllerService {
.eq(QmsPdiInspectionResults::getInspectionItemResults, false)
.list();
// 5. 校验如果所有检测项都合格总体判定不能为不合格
// 5. 装车前整体检测结果不参与普通检测项判定
boolean hasDefect = !failedItems.isEmpty();
if (!hasDefect && !request.getOverallResult()) {
throw new NflgException(STATE.BusinessError, "所有检测项均为合格,总体判定不能为不合格");
}
// 6. 将整体判定结果存入 task_record
boolean overallResult = request.getOverallResult() != null && request.getOverallResult();