工步开发

tags/yfai-pcn-ext-v1.0
微笑着面对明天 12 months ago
parent b66eb47066
commit ebb0a39c1a

@ -181,7 +181,7 @@ public class MesReworkTaskServiceImpl implements IMesReworkTaskService {
MesPcnException.throwFlowException("还有位置未返工完成,请检查");
}
mesReworkTask.setStatus(MesExtEnumUtil.REWORK_TASK_STATUS.FINISH.getValue());
mesReworkTaskRepository.update(mesReworkTask);
mesReworkTaskRepository.save(mesReworkTask);
}
@Override
@ -208,6 +208,7 @@ public class MesReworkTaskServiceImpl implements IMesReworkTaskService {
// 需要新增一条替换条码的记录
MesProductionAssembly mesProductionRepeatAssembly = new MesProductionAssembly();
BeanUtils.copyProperties(mesProductionAssembly, mesProductionRepeatAssembly);
mesProductionRepeatAssembly.setAssemblySn(requestModel.getSn());
mesProductionRepeatAssembly.setAssemblyStatus(MesExtEnumUtil.ASSEMBLY_STATUS.ASSEMBLY_STATUS_10.getValue());
mesProductionRepeatAssembly.setId(null);

@ -150,9 +150,9 @@ public class MesShippingLoadingCheckService implements IMesShippingLoadingCheckS
//判断是否需要排序校验 默认排序则需要校验
if (loadingList.getScanSeqWay() == MesExtEnumUtil.SHIPPING_GROUP_SCAN_CONFIRM_SEQ_MODE.DEFAULT_SORT.getValue()) {
//获取明细中最小的
Long minSeq = model.getDetailList().stream().mapToLong(k -> k.getSeq()).min().getAsLong();
Long minSeq = model.getDetailList().stream().mapToLong(k -> k.getScanSeq()).min().getAsLong();
//若扫描的不是最小顺序 则报错
if (minSeq != loadingListDetail.getSeq()) {
if (minSeq != loadingListDetail.getScanSeq().longValue()) {
throw new ImppBusiException(String.format("【%s】此发运单扫描顺序错误请检查数据", model.getShippingCode()));
}
}

@ -60,6 +60,8 @@ public class MesMouldRecordGenerateStepService extends BaseStepService {
MesProductionProcessContext productionProcessContext = productionProcessContextStepService.getEquipmentVariableList(reqBean, MesExtEnumUtil.EQUIP_VARIABLE_TYPE.PRODUCTION.getValue());
List<MesProduceSn> mesProduceSns = mesProductionDispatchContextStepService.getOutProduceSnDataContext(reqBean);
MesEquipVariableCollectContext mesFirstMouldNoCollectContext = mesProductionDispatchContextStepService.getFirstMouldNoContext(reqBean);
MesEquipVariableCollectContext mesMouldNoCollectContext = mesProductionDispatchContextStepService.getMouldNoContext(reqBean);
List<MesProdMouldRecord> mesProdMouldRecords = new ArrayList<>();
for (MesProduceSn mesProduceSn : mesProduceSns) {
@ -68,8 +70,6 @@ public class MesMouldRecordGenerateStepService extends BaseStepService {
String equipmentCode = mesCellEquipContext.getEquipmentCode();
String mouldNo = "";
MesEquipVariableCollectContext mesFirstMouldNoCollectContext = mesProductionDispatchContextStepService.getFirstMouldNoContext(reqBean);
MesEquipVariableCollectContext mesMouldNoCollectContext = mesProductionDispatchContextStepService.getMouldNoContext(reqBean);
if (mesFirstMouldNoCollectContext != null) {
mouldNo = mesFirstMouldNoCollectContext.getEquipVariableValue();

Loading…
Cancel
Save