From e32ac074e0cdc07b7551155e2e1c24684857f2b7 Mon Sep 17 00:00:00 2001
From: “djh” <“3298565835@qq.com”>
Date: 星期三, 03 十二月 2025 15:12:19 +0800
Subject: [PATCH] 修改内审
---
multi-system/src/main/resources/mapper/system/CompanyIndustryTemplateMapper.xml | 26 ++++++++++++++++++++++++++
1 files changed, 26 insertions(+), 0 deletions(-)
diff --git a/multi-system/src/main/resources/mapper/system/CompanyIndustryTemplateMapper.xml b/multi-system/src/main/resources/mapper/system/CompanyIndustryTemplateMapper.xml
index 17d8961..cf76a5c 100644
--- a/multi-system/src/main/resources/mapper/system/CompanyIndustryTemplateMapper.xml
+++ b/multi-system/src/main/resources/mapper/system/CompanyIndustryTemplateMapper.xml
@@ -89,6 +89,9 @@
<if test="type!=null and type!=''">
and ci.type like concat('%',#{type},'%')
</if>
+ <if test="templateName!=null and templateName!=''">
+ and ci.`template_name` like concat('%',#{templateName},'%')
+ </if>
ORDER BY
CAST(SUBSTRING_INDEX(ci.chapter, '.', 1) AS UNSIGNED) ASC,
CAST(SUBSTRING_INDEX(SUBSTRING_INDEX(ci.chapter, '.', 2), '.', -1) AS UNSIGNED) ASC, -- 第二级
@@ -100,4 +103,27 @@
END AS UNSIGNED
) ASC
</select>
+ <select id="selectCompanyIndustryTemplate"
+ resultType="com.gkhy.exam.system.domain.CompanyIndustryTemplate">
+ SELECT
+ `id`,
+ `company_id`,
+ `company_name`,
+ chapter,
+ `type`,
+ `template_name`,
+ `industry_type`,
+ `file_path`,
+ `file_name`,
+ `format`,
+ `del_flag`,
+ `create_by`,
+ `create_time`,
+ `update_by`,
+ `update_time`
+ FROM
+ company_industry_template
+ WHERE
+ del_flag = 0 and template_name = #{name}
+ </select>
</mapper>
--
Gitblit v1.9.2