From 868cf9aef166be2cba108bcc1fa5469195776673 Mon Sep 17 00:00:00 2001
From: “djh” <“3298565835@qq.com”>
Date: Thu, 05 Feb 2026 16:19:14 +0800
Subject: [PATCH] 新增同步
---
multi-system/src/main/resources/mapper/system/StandardizedTemplateMapper.xml | 41 +++++++++++++++++++++++++++++++++++++++++
1 files changed, 41 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 3292342..1fb3daa 100644
--- a/multi-system/src/main/resources/mapper/system/StandardizedTemplateMapper.xml
+++ b/multi-system/src/main/resources/mapper/system/StandardizedTemplateMapper.xml
@@ -1,6 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.gkhy.exam.system.mapper.StandardizedTemplateMapper">
+ <insert id="insertBatch">
+ INSERT INTO `standardized_template` (
+ `company_id`,
+ `company_name`,
+ `create_by`,
+ `create_time`,
+ `template_name`,
+ `template_type`,
+ `file_path`,
+ `format`,
+ `classify`,
+ `dept_id`,
+ `industry_type_id`,
+ `stage`,
+ `department`
+ )
+ VALUES
+ <foreach collection="standardizedTemplates" item="item" separator=",">
+ (
+ #{item.companyId},
+ #{item.companyName},
+ #{item.createBy},
+ #{item.createTime},
+ #{item.templateName},
+ #{item.templateType},
+ #{item.filePath},
+ #{item.format},
+ #{item.classify},
+ #{item.deptId},
+ #{item.industryTypeId},
+ #{item.stage},
+ #{item.department}
+ )
+ </foreach>
+ </insert>
<update id="updateStandardizedTemplateById" parameterType="com.gkhy.exam.system.domain.StandardizedTemplate">
UPDATE standardized_template
<set>
@@ -88,14 +123,17 @@
</if>
<if test="sort!=null and sort==1">
ORDER BY
+ st.top_time desc,
st.template_name asc
</if>
<if test="sort!=null and sort==2">
ORDER BY
+ st.top_time desc,
st.template_name desc
</if>
<if test="sort ==null or sort== '' or sort == 0">
ORDER BY
+ st.top_time desc,
st.create_time desc
</if>
@@ -142,14 +180,17 @@
</if>
<if test="sort!=null and sort==1">
ORDER BY
+ st.top_time desc,
st.template_name asc
</if>
<if test="sort!=null and sort==2">
ORDER BY
+ st.top_time desc,
st.template_name desc
</if>
<if test="sort ==null or sort== '' or sort == 0">
ORDER BY
+ st.top_time desc,
st.create_time desc
</if>
</select>
--
Gitblit v1.9.2