From 55cb4daf506ad8f3c637f6e3d9bc7df41e538b2e Mon Sep 17 00:00:00 2001
From: liuxm <liuxm@fescotech.com>
Date: 星期二, 21 五月 2024 09:14:38 +0800
Subject: [PATCH] 产品和工站导出;不合格原因报废原因添加排序和与产品的关联;

---
 pms-parent/pms-global/src/main/resources/mapper/OthFileMapper.xml |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/pms-parent/pms-global/src/main/resources/mapper/OthFileMapper.xml b/pms-parent/pms-global/src/main/resources/mapper/OthFileMapper.xml
index 1763752..9442d62 100644
--- a/pms-parent/pms-global/src/main/resources/mapper/OthFileMapper.xml
+++ b/pms-parent/pms-global/src/main/resources/mapper/OthFileMapper.xml
@@ -16,6 +16,9 @@
     <!--@mbg.generated-->
     id, org_name, ext_name, new_name, hash, file_path, dt
   </sql>
+  <sql id="Join_Column_List">
+    ${alias}.id, ${alias}.org_name, ${alias}.ext_name, ${alias}.new_name, ${alias}.hash, ${alias}.file_path, ${alias}.dt
+  </sql>
   <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
     <!--@mbg.generated-->
     select 
@@ -121,4 +124,14 @@
       dt = #{dt}
     where id = #{id}
   </update>
+
+  <select id="selectByProId" resultMap="BaseResultMap">
+    select
+    <include refid="Join_Column_List">
+        <property name="alias" value="f"/>
+    </include>
+    from oth_file f
+    inner join plt_product_file pf on f.id = pf.file_id
+    where pf.pro_id = #{proId}
+  </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.8.0