|
|
|
@ -94,13 +94,6 @@ public class ShopOrderReleaseServiceImpl implements ShopOrderReleaseService {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
for (ShopOrderRelease shopOrderReleaseModel : shopOrderList) {
|
|
|
|
|
String workCenter = shopOrderReleaseModel.getWorkCenter();
|
|
|
|
|
String workCenterBo = HandleEnum.WORK_CENTER.getHandle(site, workCenter);
|
|
|
|
|
WorkCenter workCenterModel = workCenterService.getById(workCenterBo);
|
|
|
|
|
if (workCenterModel == null) {
|
|
|
|
|
throw new BaseException("工作中心[" + workCenter + "]不存在");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//查询工单信息
|
|
|
|
|
String shopOrder = shopOrderReleaseModel.getShopOrder();
|
|
|
|
|
String shopOrderBo = shopOrderReleaseModel.getShopOrderBo();
|
|
|
|
@ -133,6 +126,23 @@ public class ShopOrderReleaseServiceImpl implements ShopOrderReleaseService {
|
|
|
|
|
throw new BaseException("工艺路线[" +StringUtils.trimHandle(routerBo)+ "]主数据不完整,请确认");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//获取车间
|
|
|
|
|
String workCenter = null;
|
|
|
|
|
String workCenterBo = null;
|
|
|
|
|
for (RouterDTO routerDTO: routerList) {
|
|
|
|
|
String operation = routerDTO.getOperation();
|
|
|
|
|
if (!Constants.OP_6106GX.equals(operation) && operation.contains("_")) {
|
|
|
|
|
workCenter = operation.split("_")[0];
|
|
|
|
|
|
|
|
|
|
workCenterBo = HandleEnum.WORK_CENTER.getHandle(site, workCenter);
|
|
|
|
|
WorkCenter workCenterModel = workCenterService.getById(workCenterBo);
|
|
|
|
|
if (workCenterModel == null) {
|
|
|
|
|
throw BusinessException.build("生产车间【" +workCenter+ "】不存在");
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//工单下达
|
|
|
|
|
ReleaseShopOrderResponse response = null;
|
|
|
|
|
try {
|
|
|
|
|