From 0553f8ecbee81d4683ac9acb882f6d33f101aac9 Mon Sep 17 00:00:00 2001 From: shenzhouyu Date: Thu, 21 May 2026 16:49:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=82=B9=E6=A3=80=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/mapper/pms/EamMapper.xml | 58 ++++++++++++--------- 1 file changed, 32 insertions(+), 26 deletions(-) diff --git a/src/main/resources/mapper/pms/EamMapper.xml b/src/main/resources/mapper/pms/EamMapper.xml index 8c30f8f2..dd778960 100644 --- a/src/main/resources/mapper/pms/EamMapper.xml +++ b/src/main/resources/mapper/pms/EamMapper.xml @@ -446,7 +446,7 @@ FROM eam_properties_model_detail a left join eam_properties_item b on a.function_type = b.itemType and a.properties_item_no = b.itemNo and a.site = b.site and a.bu_no = b.bu_no and a.check_type = b.check_type where a.function_type = #{functionType} and a.code_no = #{codeNo} and a.site = #{site} and a.bu_no = #{buNo} and a.check_type = #{checkType} - order by order_id + order by a.order_id SELECT - Site, - bu_no, - OrderNo, - ItemNo, - ItemDesc, - DefaultValue, - ValueType, - ValueType_DB, - ValueChooseFlag, - MaxValue, - MinValue, - ItemRemark, - ItemType, - TextValue, - NumberValue, - CreatedDate, - CreatedBy, - FinishFlag, - itemResult, - item_notes - from eam_workOrder_item - where site = #{site} and orderNo = #{orderNo} and bu_no = #{buNo} + a.Site, + a.bu_no, + a.OrderNo, + a.ItemNo, + a.ItemDesc, + a.DefaultValue, + a.ValueType, + a.ValueType_DB, + a.ValueChooseFlag, + a.MaxValue, + a.MinValue, + a.ItemRemark, + a.ItemType, + a.TextValue, + a.NumberValue, + a.CreatedDate, + a.CreatedBy, + a.FinishFlag, + a.itemResult, + a.item_notes + from eam_workOrder_item a + left join eam_workOrder c on a.site = c.site and a.orderNo = c.orderNo and a.bu_no = c.bu_no + left join eam_properties_model_detail pmd on a.site = pmd.site and a.ItemType = pmd.function_type and a.ItemNo = pmd.properties_item_no and a.bu_no = pmd.bu_no and pmd.code_no = c.PropertiesCode + where a.site = #{site} and a.orderNo = #{orderNo} and a.bu_no = #{buNo} + order by pmd.order_id @@ -2609,6 +2614,7 @@ left join eam_properties_model_detail b on a.ItemType = b.function_type and a.ItemNo = b.properties_item_no and a.site = b.site and a.bu_no = b.bu_no left join eam_object_item c on a.ItemType = c.ItemType and a.ItemNo = c.ItemNo and c.objectID = #{objectID} where a.ItemType = #{itemType} and b.code_no = #{propertiesCode} and a.site = #{site} and a.bu_no = #{buNo} + order by b.order_id