From a14b9718755aeeb26b3035065a5e36c9dd1e1555 Mon Sep 17 00:00:00 2001
From: “djh” <“3298565835@qq.com”>
Date: 星期四, 20 十一月 2025 15:18:52 +0800
Subject: [PATCH] 修改
---
multi-system/src/main/resources/mapper/system/StandardizedTemplateMapper.xml | 46 ++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 46 insertions(+), 0 deletions(-)
diff --git a/multi-system/src/main/resources/mapper/system/StandardizedTemplateMapper.xml b/multi-system/src/main/resources/mapper/system/StandardizedTemplateMapper.xml
index 7c226a2..36d95d4 100644
--- a/multi-system/src/main/resources/mapper/system/StandardizedTemplateMapper.xml
+++ b/multi-system/src/main/resources/mapper/system/StandardizedTemplateMapper.xml
@@ -25,8 +25,14 @@
<if test="classify !=null">
classify = #{classify},
</if>
+ <if test="industryTypeId !=null">
+ industry_type_id = #{industryTypeId},
+ </if>
<if test="deptId !=null">
dept_id = #{deptId},
+ </if>
+ <if test="stage != null and stage != ''">
+ stage = #{stage},
</if>
<if test="delFlag != null and delFlag != ''" >
del_flag = #{delFlag},
@@ -59,6 +65,7 @@
st. `classify`,
st. `dept_id`,
sd.`dept_name`,
+ st.`stage`,
st. `del_flag`,
st. `create_by`,
st. `create_time`,
@@ -76,4 +83,43 @@
ORDER BY
st.create_time DESC
</select>
+
+
+ <select id="selectStandardizedTemplateListV2" resultType="com.gkhy.exam.system.domain.StandardizedTemplate">
+ SELECT
+ 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. `stage`,
+ st. `del_flag`,
+ st. `create_by`,
+ st. `create_time`,
+ st. `update_by`,
+ st. `update_time`,
+ st.industry_type_id,
+ cit.`name` as industryTypeName
+ FROM
+ standardized_template st
+ left join sys_dept sd on st.dept_id =sd.dept_id
+ left join company_industry_type cit on cit.id =st.industry_type_id
+ WHERE
+ st.del_flag = 0 and st.template_type = #{templateType}
+
+ <if test="companyId!=null and companyId!=''">
+ and st.company_id = #{companyId}
+ </if>
+ <if test="industryTypeId!=null ">
+ and st.industry_type_id = #{industryTypeId}
+ </if>
+ ORDER BY
+ st.create_time DESC
+ </select>
+
</mapper>
--
Gitblit v1.9.2