Merge remote-tracking branch 'origin/dev' into dev

# Conflicts:
#	modules/i3plus-ext-mes-pcn-apiservice/src/main/java/cn/estsh/i3plus/ext/mes/pcn/apiservice/serviceimpl/busi/MesShippingLoadingCheckService.java
tags/yfai-pcn-ext-v1.0
LML丶 12 months ago
commit a116032392

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

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

Loading…
Cancel
Save