From 34d203c93e776c433b7b6614a77ad1d61c7035dd Mon Sep 17 00:00:00 2001
From: “djh” <“3298565835@qq.com”>
Date: 星期四, 13 十一月 2025 17:14:11 +0800
Subject: [PATCH] 修改新增

---
 multi-system/src/main/resources/mapper/system/StandardizedTemplateMapper.xml |   42 ++++++++++++++++++++++++++----------------
 1 files changed, 26 insertions(+), 16 deletions(-)

diff --git a/multi-system/src/main/resources/mapper/system/StandardizedTemplateMapper.xml b/multi-system/src/main/resources/mapper/system/StandardizedTemplateMapper.xml
index 9608bfd..7c226a2 100644
--- a/multi-system/src/main/resources/mapper/system/StandardizedTemplateMapper.xml
+++ b/multi-system/src/main/resources/mapper/system/StandardizedTemplateMapper.xml
@@ -22,6 +22,12 @@
             <if test="format != null and format !=''" >
                 format = #{format},
             </if>
+            <if test="classify !=null">
+                classify = #{classify},
+            </if>
+            <if test="deptId !=null">
+                dept_id = #{deptId},
+            </if>
             <if test="delFlag != null and delFlag != ''" >
                 del_flag = #{delFlag},
             </if>
@@ -43,27 +49,31 @@
 
     <select id="selectStandardizedTemplateList" resultType="com.gkhy.exam.system.domain.StandardizedTemplate">
         SELECT
-            `id`,
-            `company_id`,
-            `company_name`,
-            `template_name`,
-            `template_type`,
-            `file_path`,
-            `format`,
-            `del_flag`,
-            `create_by`,
-            `create_time`,
-            `update_by`,
-            `update_time`
+            st.`id`,
+            st.`company_id`,
+            st.`company_name`,
+            st.`template_name`,
+            st. `template_type`,
+            st. `file_path`,
+            st. `format`,
+            st. `classify`,
+            st. `dept_id`,
+            sd.`dept_name`,
+            st. `del_flag`,
+            st. `create_by`,
+            st. `create_time`,
+            st. `update_by`,
+            st. `update_time`
         FROM
-        standardized_template
+        standardized_template st
+        left join  sys_dept sd on st.dept_id =sd.dept_id
         WHERE
-            del_flag = 0 and template_type = #{templateType}
+            st.del_flag = 0 and st.template_type = #{templateType}
 
         <if test="companyId!=null and companyId!=''">
-            and company_id = #{companyId}
+            and st.company_id = #{companyId}
         </if>
         ORDER BY
-            create_time DESC
+            st.create_time DESC
     </select>
 </mapper>

--
Gitblit v1.9.2