|
|
|
@ -672,7 +672,7 @@ public class ProduceSnExtService implements IProduceSnExtService {
|
|
|
|
|
throw ImppExceptionBuilder.newInstance()
|
|
|
|
|
.setSystemID(CommonEnumUtil.SOFT_TYPE.MES_PCN.getCode())
|
|
|
|
|
.setErrorCode(ImppExceptionEnum.VARIFY_EXCEPTION.getCode())
|
|
|
|
|
.setErrorDetail("工单[%s]关联的物料号[%s]未维护成外制件", workOrder.getOrderNo(), workOrder.getPartNo())
|
|
|
|
|
.setErrorDetail("工单[%s]关联的物料号[%s]基础信息物料分类2未维护成JX内制", workOrder.getOrderNo(), workOrder.getPartNo())
|
|
|
|
|
.build();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -775,6 +775,7 @@ public class ProduceSnExtService implements IProduceSnExtService {
|
|
|
|
|
.setErrorDetail("请检查工单[%s]数量", workOrder.getOrderNo())
|
|
|
|
|
.build();
|
|
|
|
|
}
|
|
|
|
|
genSerialNoModel.setPartNo(partDb.getPartNo());
|
|
|
|
|
BaseResultBean<String> resultBean = syncFuncService.syncSerialNo(genSerialNoModel, userInfo, workOrder.getOrganizeCode(), codeType.getCount());
|
|
|
|
|
if (resultBean != null && resultBean.isSuccess()) {
|
|
|
|
|
if (CollectionUtils.isEmpty(resultBean.getResultList())) {
|
|
|
|
@ -944,7 +945,7 @@ public class ProduceSnExtService implements IProduceSnExtService {
|
|
|
|
|
throw ImppExceptionBuilder.newInstance()
|
|
|
|
|
.setSystemID(CommonEnumUtil.SOFT_TYPE.MES_PCN.getCode())
|
|
|
|
|
.setErrorCode(ImppExceptionEnum.VARIFY_EXCEPTION_DATA_NOT_EXIT.getCode())
|
|
|
|
|
.setErrorDetail("模板错误,请检查模板配置")
|
|
|
|
|
.setErrorDetail("模板错误,请检查模板配置;详细报错原因:%s",e.getMessage())
|
|
|
|
|
.build();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|