44424 PCN:工单判可疑的码,扫描工单检验通过后,在扫描装配件工步时扫描判可疑码,工单标记为可疑

uat_temp_xw_202502100000_44424
xiangwei.zhang 3 months ago
parent e4a812ecf8
commit 628c219cfe

@ -537,16 +537,14 @@ public class MesNcProcessingService implements IMesNcProcessingService {
} }
partInspectionRepository.save(model.getPartInspection()); partInspectionRepository.save(model.getPartInspection());
if (!headModel) { if (!headModel && !CollectionUtils.isEmpty(mesPartModels) && mesPartModels.size() > 0) {
if (!CollectionUtils.isEmpty(mesPartModels) && mesPartModels.size() > 0) { List<MesMove> moveList = new ArrayList<>();
List<MesMove> moveList = new ArrayList<>(); for (MesPartModel mesPartModel : mesPartModels) {
for (MesPartModel mesPartModel : mesPartModels) { MesMove move = createMove(model, sourceValue, areaCode, org, null == sn ? workCenterCode : sn.getWorkCenterCode(), MesExtEnumUtil.MOVE_TYPE.RETURN_MOVE, mesPartModel.getPartNo());
MesMove move = createMove(model, sourceValue, areaCode, org, null == sn ? workCenterCode : sn.getWorkCenterCode(), MesExtEnumUtil.MOVE_TYPE.RETURN_MOVE, mesPartModel.getPartNo()); ConvertBean.serviceModelInitialize(move, model.getUserName());
ConvertBean.serviceModelInitialize(move, model.getUserName()); moveList.add(move);
moveList.add(move);
}
moveRepository.saveAll(moveList);
} }
moveRepository.saveAll(moveList);
} else { } else {
MesMove move = createMove(model, sourceValue, areaCode, org, null == sn ? workCenterCode : sn.getWorkCenterCode(), MesExtEnumUtil.MOVE_TYPE.RETURN_MOVE); MesMove move = createMove(model, sourceValue, areaCode, org, null == sn ? workCenterCode : sn.getWorkCenterCode(), MesExtEnumUtil.MOVE_TYPE.RETURN_MOVE);
ConvertBean.serviceModelInitialize(move, model.getUserName()); ConvertBean.serviceModelInitialize(move, model.getUserName());

Loading…
Cancel
Save