From bd85276c0dbc3e9317ac806bef07b75e8f22401c Mon Sep 17 00:00:00 2001
From: 刘小明 <liuxm_a@163.com>
Date: 星期一, 29 七月 2024 09:16:32 +0800
Subject: [PATCH] mapper 及xml整理

---
 pms-parent/pms-global/src/main/resources/mapper/StaDeviceProductionLogMapper.xml |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/pms-parent/pms-global/src/main/resources/mapper/StaDeviceProductionLogMapper.xml b/pms-parent/pms-global/src/main/resources/mapper/StaDeviceProductionLogMapper.xml
index 905a7d8..408f75b 100644
--- a/pms-parent/pms-global/src/main/resources/mapper/StaDeviceProductionLogMapper.xml
+++ b/pms-parent/pms-global/src/main/resources/mapper/StaDeviceProductionLogMapper.xml
@@ -51,11 +51,13 @@
         select
             t.* ,p.`name` plan_name,s.`name` station_name,u.`name` update_user_name
         FROM
-            sta_device_last t
+            (
+                select <include refid="Base_Column_List" /> from sta_device_production_log_past where  device_no = #{deviceNo,jdbcType=VARCHAR} union
+                select <include refid="Base_Column_List" /> from sta_device_production_log where device_no = #{deviceNo,jdbcType=VARCHAR}
+            ) t
                 left join pr_assembly_plan p on t.plan_id=p.id
                 left join plt_station s on s.id = t.station_id
                 left JOIN ba_user u on u.id=t.updated_by
-        where  t.device_no = #{deviceNo,jdbcType=VARCHAR}
         ORDER BY t.id DESC
     </select>
 

--
Gitblit v1.8.0