pdi提交修改字段
This commit is contained in:
parent
94f9008e75
commit
a21b9245f5
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue