|
|
|
@ -510,7 +510,7 @@ public class MesInputDefectRecordService implements IMesInputDefectRecordService
|
|
|
|
|
srcNo = version.getReceiveInventoryPoint();
|
|
|
|
|
}
|
|
|
|
|
String destLocateNo = getDestLocateNo(model, org);
|
|
|
|
|
if(headModel && !Objects.equals(srcNo, destLocateNo)) {
|
|
|
|
|
if(!Objects.equals(srcNo, destLocateNo)) {
|
|
|
|
|
throw new ImppBusiException(String.format("【%s】该条码需要完成质检,再重新录入电子化检验", model.getSn()));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -643,11 +643,9 @@ public class MesInputDefectRecordService implements IMesInputDefectRecordService
|
|
|
|
|
if (version != null) {
|
|
|
|
|
srcNo = version.getReceiveInventoryPoint();
|
|
|
|
|
}
|
|
|
|
|
if (headModel ) {
|
|
|
|
|
String destLocateNo = getDestLocateNo(model, org);
|
|
|
|
|
if (!Objects.equals(srcNo, destLocateNo)) {
|
|
|
|
|
throw new ImppBusiException(String.format("【%s】该条码需要完成质检,再重新录入电子化检验", model.getSn()));
|
|
|
|
|
}
|
|
|
|
|
String destLocateNo = getDestLocateNo(model, org);
|
|
|
|
|
if (!Objects.equals(srcNo, destLocateNo)) {
|
|
|
|
|
throw new ImppBusiException(String.format("【%s】该条码需要完成质检,再重新录入电子化检验", model.getSn()));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|