diff --git a/op-modules/op-job/src/main/java/com/op/job/task/RyTask.java b/op-modules/op-job/src/main/java/com/op/job/task/RyTask.java index 2868bf0e..e8169b8f 100644 --- a/op-modules/op-job/src/main/java/com/op/job/task/RyTask.java +++ b/op-modules/op-job/src/main/java/com/op/job/task/RyTask.java @@ -155,7 +155,7 @@ public class RyTask { } /************质量管理系统定时任务开始*****************/ - //过程巡检,改为整点08:00-20:00运行 + //过程巡检,每3分钟执行检查一次 public void createProduceXJTask(){ logger.info("++质量管理系统+过程巡检+开始++createProduceXJTask+++++"); remoteQualityService.createProduceXJTask(); diff --git a/op-modules/op-mes/src/main/java/com/op/mes/domain/MesReportWorkConsume.java b/op-modules/op-mes/src/main/java/com/op/mes/domain/MesReportWorkConsume.java index 5f2a6583..1f85da30 100644 --- a/op-modules/op-mes/src/main/java/com/op/mes/domain/MesReportWorkConsume.java +++ b/op-modules/op-mes/src/main/java/com/op/mes/domain/MesReportWorkConsume.java @@ -107,6 +107,15 @@ public class MesReportWorkConsume extends BaseEntity { private String productGroupName; //上级物料 private String pMaterialCode; + private String workorderCodeSap; + + public String getWorkorderCodeSap() { + return workorderCodeSap; + } + + public void setWorkorderCodeSap(String workorderCodeSap) { + this.workorderCodeSap = workorderCodeSap; + } public String getpMaterialCode() { return pMaterialCode; diff --git a/op-modules/op-mes/src/main/resources/mapper/mes/MesReportWorkConsumeMapper.xml b/op-modules/op-mes/src/main/resources/mapper/mes/MesReportWorkConsumeMapper.xml index 42429401..a33283fa 100644 --- a/op-modules/op-mes/src/main/resources/mapper/mes/MesReportWorkConsumeMapper.xml +++ b/op-modules/op-mes/src/main/resources/mapper/mes/MesReportWorkConsumeMapper.xml @@ -102,9 +102,11 @@ mrwc.quantity, mrwc.unit, mrwc.create_time createTime, - mrwc.recoil + mrwc.recoil, + pow.workorder_code_sap workorderCodeSap from mes_report_work_consume mrwc - where mrwc.del_flag = '0' + left join pro_order_workorder pow on mrwc.workorder_code = pow.workorder_code + where mrwc.del_flag = '0' and pow.del_flag = '0' and mrwc.workorder_code = #{workorderCode} order by mrwc.recoil 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 a4a21585..33b8d260 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 @@ -529,24 +529,26 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"