From 6860dc957bc7669decce4bc487c8209be87b0a7b Mon Sep 17 00:00:00 2001 From: zhaoxiaolin Date: Mon, 26 Aug 2024 17:50:51 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E4=BA=A7=E6=97=A5=E6=8A=A5=E8=A1=A8?= =?UTF-8?q?=E7=9B=B8=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/mapper/mes/MesLineMapper.xml | 9 +++++---- .../op-mes/src/main/resources/mapper/mes/MesMapper.xml | 2 +- .../resources/mapper/quality/QcStaticTableMapper.xml | 6 +++--- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/op-modules/op-mes/src/main/resources/mapper/mes/MesLineMapper.xml b/op-modules/op-mes/src/main/resources/mapper/mes/MesLineMapper.xml index 1159895c..759a4318 100644 --- a/op-modules/op-mes/src/main/resources/mapper/mes/MesLineMapper.xml +++ b/op-modules/op-mes/src/main/resources/mapper/mes/MesLineMapper.xml @@ -10,6 +10,7 @@ + @@ -28,12 +29,12 @@ select id, line_code, product_code,product_name,use_man, efficiency, attr1, attr2, attr3, attr4, create_by, - create_time, update_by, update_time, factory_code, del_flag from mes_line_product + create_time, update_by, update_time, factory_code, del_flag,hour_efficiency from mes_line_product select mlp.use_man standarMan, - ROUND(mlp.efficiency/bp.umrez,2) AS standarXl + ROUND(mlp.hour_efficiency/bp.umrez,2) AS standarXl from mes_line_product mlp left join base_product bp on bp.product_code=mlp.product_code where mlp.line_code = #{equCode} and mlp.product_code = #{productCode} diff --git a/op-modules/op-quality/src/main/resources/mapper/quality/QcStaticTableMapper.xml b/op-modules/op-quality/src/main/resources/mapper/quality/QcStaticTableMapper.xml index 99524e47..2dedd3c5 100644 --- a/op-modules/op-quality/src/main/resources/mapper/quality/QcStaticTableMapper.xml +++ b/op-modules/op-quality/src/main/resources/mapper/quality/QcStaticTableMapper.xml @@ -698,7 +698,7 @@ FROM( select CONVERT(varchar(7),qct.create_time, 120) AS ymdms, qct.sample_quality from qc_check_task qct - where check_type = #{checkType} + where check_type = #{checkType} and check_status = 2 and CONVERT(varchar(4),qct.create_time, 120) = #{incomeTimeStr} and del_flag = '0' ) t @@ -711,7 +711,7 @@ FROM( select CONVERT(varchar(10),qct.create_time, 120) AS ymdms, check_result from qc_check_task qct - where check_type = #{checkType} + where check_type = #{checkType} and check_status = 2 and CONVERT(varchar(7),qct.create_time, 120) = #{incomeTimeStr} and del_flag = '0' ) t @@ -724,7 +724,7 @@ FROM( select DATEPART(HOUR, qct.create_time) AS ymdms,check_result from qc_check_task qct - where check_type = #{checkType} + where check_type = #{checkType} and check_status = 2 and CONVERT(varchar(10),qct.create_time, 120) = #{incomeTimeStr} and del_flag = '0' ) t