diff --git a/modules/i3plus-ext-mes-pcn-apiservice/src/main/java/cn/estsh/i3plus/ext/mes/pcn/apiservice/serviceimpl/base/MesReworkTaskServiceImpl.java b/modules/i3plus-ext-mes-pcn-apiservice/src/main/java/cn/estsh/i3plus/ext/mes/pcn/apiservice/serviceimpl/base/MesReworkTaskServiceImpl.java index 20318d2..2905c7c 100644 --- a/modules/i3plus-ext-mes-pcn-apiservice/src/main/java/cn/estsh/i3plus/ext/mes/pcn/apiservice/serviceimpl/base/MesReworkTaskServiceImpl.java +++ b/modules/i3plus-ext-mes-pcn-apiservice/src/main/java/cn/estsh/i3plus/ext/mes/pcn/apiservice/serviceimpl/base/MesReworkTaskServiceImpl.java @@ -256,6 +256,7 @@ public class MesReworkTaskServiceImpl implements IMesReworkTaskService { mesProduceSnPrintModel.setOrganizeCode(organizeCode); List snList = new ArrayList<>(); sn.setDescription(String.format("源条码:%s",sn.getProductSn())); + sn.setLotNo(TimeTool.getToday()); sn.setProductSn(doGererateSerialNo(mesPart, organizeCode, requestModel.getUserName())); snList.add(sn); mesProduceSnPrintModel.getMesProduceSnList().addAll(snList); @@ -534,7 +535,7 @@ public class MesReworkTaskServiceImpl implements IMesReworkTaskService { return produceSn; } - private MesMove createMove(String sn, String oldSn, String organizeCode, String userName) { + private MesMove createMove(String oldSn, String sn, String organizeCode, String userName) { MesMove move = new MesMove(); move.setOrganizeCode(organizeCode); move.setFactoryCode(organizeCode); diff --git a/modules/i3plus-ext-mes-pcn-apiservice/src/main/java/cn/estsh/i3plus/ext/mes/pcn/apiservice/serviceimpl/busi/MesInputDefectRecordService.java b/modules/i3plus-ext-mes-pcn-apiservice/src/main/java/cn/estsh/i3plus/ext/mes/pcn/apiservice/serviceimpl/busi/MesInputDefectRecordService.java index 6b82153..70810f9 100644 --- a/modules/i3plus-ext-mes-pcn-apiservice/src/main/java/cn/estsh/i3plus/ext/mes/pcn/apiservice/serviceimpl/busi/MesInputDefectRecordService.java +++ b/modules/i3plus-ext-mes-pcn-apiservice/src/main/java/cn/estsh/i3plus/ext/mes/pcn/apiservice/serviceimpl/busi/MesInputDefectRecordService.java @@ -710,14 +710,8 @@ public class MesInputDefectRecordService implements IMesInputDefectRecordService DdlPackBean packBean = DdlPackBean.getDdlPackBean(org); DdlPreparedPack.getStringEqualPack(part.getPartTypeCode(), "partTypeCode", packBean); - MesPartTypePicture partTypePicture = partTypePictureRepository.getByProperty(packBean); - //若不存在则提示零件类别不存在 - if (null == partTypePicture) { - throw new ImppBusiException(String.format("【%s】物料号对应的【%s】零件类别不存在,请检查数据", part.getPartNo(), part.getPartTypeCode())); - } - - return partTypePicture; + return partTypePictureRepository.getByProperty(packBean); } private List checkLocationConfig(String org) { diff --git a/modules/i3plus-ext-mes-pcn-apiservice/src/main/java/cn/estsh/i3plus/ext/mes/pcn/apiservice/serviceimpl/busi/MesNcProcessingService.java b/modules/i3plus-ext-mes-pcn-apiservice/src/main/java/cn/estsh/i3plus/ext/mes/pcn/apiservice/serviceimpl/busi/MesNcProcessingService.java index 292f37b..2dd6de6 100644 --- a/modules/i3plus-ext-mes-pcn-apiservice/src/main/java/cn/estsh/i3plus/ext/mes/pcn/apiservice/serviceimpl/busi/MesNcProcessingService.java +++ b/modules/i3plus-ext-mes-pcn-apiservice/src/main/java/cn/estsh/i3plus/ext/mes/pcn/apiservice/serviceimpl/busi/MesNcProcessingService.java @@ -235,14 +235,8 @@ public class MesNcProcessingService implements IMesNcProcessingService { DdlPackBean packBean = DdlPackBean.getDdlPackBean(org); DdlPreparedPack.getStringEqualPack(part.getPartTypeCode(), "partTypeCode", packBean); - MesPartTypePicture partTypePicture = partTypePictureRepository.getByProperty(packBean); - //若不存在则提示零件类别不存在 - if (StringUtils.isEmpty(partTypePicture)) { - throw new ImppBusiException(String.format("【%s】物料号对应的【%s】零件类别不存在,请检查数据", part.getPartNo(), part.getPartTypeCode())); - } - - return partTypePicture; + return partTypePictureRepository.getByProperty(packBean); } private List checkPartTypeDefect(MesPart part, String org) {