From 41a0445a0c71018ed7a963dcfbcd5f71fee25399 Mon Sep 17 00:00:00 2001 From: Leon <3066758958@qq.com> Date: Wed, 29 Sep 2021 14:13:39 +0800 Subject: [PATCH] =?UTF-8?q?CAPP=E8=BF=94=E4=BF=AE=E5=B7=A5=E8=89=BA?= =?UTF-8?q?=E8=B7=AF=E7=BA=BF=E6=8E=A5=E5=8F=A3=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../integration/service/impl/InterfaceServiceImpl.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/integration/src/main/java/com/foreverwin/mesnac/integration/service/impl/InterfaceServiceImpl.java b/integration/src/main/java/com/foreverwin/mesnac/integration/service/impl/InterfaceServiceImpl.java index da5eb1cd..92b093ec 100644 --- a/integration/src/main/java/com/foreverwin/mesnac/integration/service/impl/InterfaceServiceImpl.java +++ b/integration/src/main/java/com/foreverwin/mesnac/integration/service/impl/InterfaceServiceImpl.java @@ -302,12 +302,17 @@ public class InterfaceServiceImpl implements InterfaceService { String resource = routerStepDto.getRESRCE(); - String operation = routerStepDto.getOPERATION(); + /*String operation = routerStepDto.getOPERATION(); String _revision = routerStepDto.getREVISION(); _revision = StringUtil.notBlank(_revision) ? _revision : "1.0"; String description = routerStepDto.getOPERATION_DESCRIPTION(); - //工序创建 Operation operationModel = this.createResourceOfOperation(site, resource, operation, description, _revision); + String operationBo = operationModel.getHandle();*/ + Operation operationModel = operationService.queryOperationByErpWorkCenter(site, resource); + if (operationModel == null) { + throw BusinessException.build("步骤标识【" + stepId + "】下【" + resource + "】对应的MES工序未维护"); + } + String operation = operationModel.getOperation(); String operationBo = operationModel.getHandle(); //工艺路线步骤