修复Bug:45420,修复批量并发操作卡控问题

uat-temp-nht-2503100000-45420
jason 2 months ago
parent 9997395c46
commit 9d601a3b3c

@ -370,7 +370,8 @@ public class MesNcProcessingService implements IMesNcProcessingService {
String workCenterCode = null == model.getPartInspection() ? null : model.getPartInspection().getWorkCenterCode();
assert model.getPartInspection() != null;
model.getPartInspection().setQmsSync(CommonEnumUtil.TRUE_OR_FALSE.FALSE.getValue());
if (!Objects.equals(model.getPartInspection().getNcStatus(), MesExtEnumUtil.PART_INSPECTION_NC_STATUS.CREATE.getValue())) {
MesPartInspection existedInspection = partInspectionRepository.getById(model.getPartInspection().getId());
if (existedInspection != null && !Objects.equals(existedInspection.getNcStatus(), MesExtEnumUtil.PART_INSPECTION_NC_STATUS.CREATE.getValue())) {
throw new ImppBusiException(String.format("零件【%s】已进行过NC处理请勿重复操作", part.getPartNo()));
}
MesProduceSn sn = getProduceSn(model.getSn(), org);

Loading…
Cancel
Save