From b7bfb7b1ba09d631b4dcedb9a0df335f159d8b61 Mon Sep 17 00:00:00 2001 From: zhaoxiaolin Date: Tue, 2 Apr 2024 16:08:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9D=A5=E6=96=99=E5=8E=BB=E9=87=8D=E4=BF=AE?= =?UTF-8?q?=E6=94=B9+=E6=88=90=E5=93=81=E4=BF=AE=E6=94=B9=E8=AE=BE?= =?UTF-8?q?=E5=A4=87+=E7=9C=8B=E6=9D=BFbug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../op/mes/mapper/MesReportWorkMapper.java | 2 -- .../service/impl/IWCInterfaceServiceImpl.java | 2 -- .../main/resources/mapper/mes/MesMapper.xml | 2 +- .../mapper/mes/MesReportWorkMapper.xml | 5 ----- .../impl/ProOrderWorkorderServiceImpl.java | 10 +++++----- .../QcCheckTaskIncomeController.java | 4 ++-- .../impl/QcCheckTaskIncomeServiceImpl.java | 9 +++++++-- .../impl/QcCheckTaskProduceServiceImpl.java | 20 +++++++++++++++---- .../quality/QcCheckTaskIncomeMapper.xml | 2 +- .../quality/QcCheckTypeProjectMapper.xml | 2 +- .../op/sap/service/impl/SapItemSyncImpl.java | 2 +- 11 files changed, 34 insertions(+), 26 deletions(-) diff --git a/op-modules/op-mes/src/main/java/com/op/mes/mapper/MesReportWorkMapper.java b/op-modules/op-mes/src/main/java/com/op/mes/mapper/MesReportWorkMapper.java index 8a406f0f..a17fb24a 100644 --- a/op-modules/op-mes/src/main/java/com/op/mes/mapper/MesReportWorkMapper.java +++ b/op-modules/op-mes/src/main/java/com/op/mes/mapper/MesReportWorkMapper.java @@ -127,8 +127,6 @@ public interface MesReportWorkMapper { public MesReportWork getReportWorkHz(MesReportWork mesReportWork); - MesReportWork getEndReport(MesReportWork pWork); - List selectMesReportWorkList_S(MesReportWork mesReportWork); int reportSapCancel(MesReportWork mesReportWork); diff --git a/op-modules/op-mes/src/main/java/com/op/mes/service/impl/IWCInterfaceServiceImpl.java b/op-modules/op-mes/src/main/java/com/op/mes/service/impl/IWCInterfaceServiceImpl.java index 6ebf9376..d8813b38 100644 --- a/op-modules/op-mes/src/main/java/com/op/mes/service/impl/IWCInterfaceServiceImpl.java +++ b/op-modules/op-mes/src/main/java/com/op/mes/service/impl/IWCInterfaceServiceImpl.java @@ -424,8 +424,6 @@ public class IWCInterfaceServiceImpl implements IWCSInterfaceService { } catch (Exception e) { e.printStackTrace(); } - //最终报工标识且sap报工成功:关闭子母工单 - //MesReportWork endReport = mesReportWorkMapper.getEndReport(pHzWork); }else{ //报工不成功跳出循环 break; diff --git a/op-modules/op-mes/src/main/resources/mapper/mes/MesMapper.xml b/op-modules/op-mes/src/main/resources/mapper/mes/MesMapper.xml index 4dc04c71..7e454347 100644 --- a/op-modules/op-mes/src/main/resources/mapper/mes/MesMapper.xml +++ b/op-modules/op-mes/src/main/resources/mapper/mes/MesMapper.xml @@ -316,7 +316,7 @@ pow.unit from pro_order_workorder pow left join base_equipment be on pow.workorder_name = be.equipment_code and be.equipment_type_code = 'equ_type_bzx' - where pow.workorder_name = 'XL03' and pow.status = 'w2' + where pow.workorder_name = #{equCode} and pow.status = 'w2' and CONVERT ( DATE, pow.product_date ) = CONVERT ( DATE, GETDATE( ) ) and pow.parent_order = '0' diff --git a/op-modules/op-mes/src/main/resources/mapper/mes/MesReportWorkMapper.xml b/op-modules/op-mes/src/main/resources/mapper/mes/MesReportWorkMapper.xml index b93be404..df392f41 100644 --- a/op-modules/op-mes/src/main/resources/mapper/mes/MesReportWorkMapper.xml +++ b/op-modules/op-mes/src/main/resources/mapper/mes/MesReportWorkMapper.xml @@ -599,11 +599,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" left join pro_order_workorder ow on mrw.workorder_code = ow.workorder_code left join base_equipment equ on equ.equipment_code = ow.workorder_name - diff --git a/op-modules/op-sap/src/main/java/com/op/sap/service/impl/SapItemSyncImpl.java b/op-modules/op-sap/src/main/java/com/op/sap/service/impl/SapItemSyncImpl.java index 8cce8f66..0d7f585c 100644 --- a/op-modules/op-sap/src/main/java/com/op/sap/service/impl/SapItemSyncImpl.java +++ b/op-modules/op-sap/src/main/java/com/op/sap/service/impl/SapItemSyncImpl.java @@ -428,7 +428,7 @@ public class SapItemSyncImpl implements SapItemSyncService { Date date = inputFormat.parse(inputDateTime); qcCheckTaskIncomeDTO.setIncomeTime(date); qcCheckTaskIncomeDTO.setFactoryCode(maraTable.getString("WERKS")); - qcCheckTaskIncomeDTO.setAttr1(maraTable.getString("USNAM"));//收货人 + qcCheckTaskIncomeDTO.setAttr3(maraTable.getString("USNAM"));//收货人 qcCheckTaskIncomeDTO.setCreateTime(nowTime); qcCheckTaskIncomeDTO.setCreateBy(createBy); qcCheckTaskIncomeDTOList.add(qcCheckTaskIncomeDTO);