From 3d81b617b2276907d55143d96ff57832dd8c1789 Mon Sep 17 00:00:00 2001 From: philip <244793088@qq.com> Date: Fri, 23 Jul 2021 15:20:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9B=E5=BB=BA=E9=A6=96=E6=A3=80=E4=B8=93?= =?UTF-8?q?=E6=A3=80=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/PodTemplateServiceImpl.java | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/production/src/main/java/com/foreverwin/mesnac/production/service/impl/PodTemplateServiceImpl.java b/production/src/main/java/com/foreverwin/mesnac/production/service/impl/PodTemplateServiceImpl.java index 0f5e87fa..4b26e9f0 100644 --- a/production/src/main/java/com/foreverwin/mesnac/production/service/impl/PodTemplateServiceImpl.java +++ b/production/src/main/java/com/foreverwin/mesnac/production/service/impl/PodTemplateServiceImpl.java @@ -266,6 +266,28 @@ public class PodTemplateServiceImpl implements PodTemplateService { sfcCrossService.completeAction(site, currentRevisionRef.getHandle(), resrce, sfcServiceById.getHandle(), qty); //更改派工单状态 sfcDispatchCommonService.updateSfcDispatchStatus(site, CommonMethods.getUser(), dispatchNo, DispatchStatusEnum.COMPLETE.getCode()); + //专检创建 + Map paramMap=new HashMap<>(); + paramMap.put("SFC",sfc); + paramMap.put("SHOP_ORDER",StringUtil.trimHandle(sfcServiceById.getShopOrderBo())); + paramMap.put("OPERATION",operation); + paramMap.put("STEP_ID",stepId); + String workShopBo = commonService.getWorkShopBo(HandleEnum.RESOURCE.getHandle(site, resrce)); + paramMap.put("WORK_CENTER",StringUtil.trimHandle(workShopBo)); + paramMap.put("RESRCE",resrce); + paramMap.put("SFC_DISPATCH_DETAIL_BO",HandleEnum.SFC_DISPATCH.getHandle(site,dispatchNo)); + + inspectionItemDetails = inspectionItemService.selectQualityInspection(sfc,operation, stepId, Constants.INSPECTION_TYPE_P); + if (inspectionItemDetails.size() > 0 && inspectionItemDetails.get(0) != null) { + paramMap.put("CATEGORY",Constants.INSPECTION_TYPE_P); + inspectionTaskService.createTask(paramMap); + } + //首件创建 + inspectionItemDetails = inspectionItemService.selectQualityInspection(sfc,operation, stepId, Constants.INSPECTION_TYPE_S); + if (inspectionItemDetails.size() > 0 && inspectionItemDetails.get(0) != null) { + paramMap.put("CATEGORY",Constants.INSPECTION_TYPE_S); + inspectionTaskService.createTask(paramMap); + } //报工 sendErp(sfc, stepId, qty); } catch (Exception e) {