From 430477c7e0777531f22fc18dc8906ea75cdc21d9 Mon Sep 17 00:00:00 2001
From: heheng <475597332@qq.com>
Date: 星期三, 03 十二月 2025 16:53:53 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
multi-system/src/main/resources/mapper/system/InternalAuditCheckCatalogueMapper.xml | 36 ++++++++++++++++++++++++++++++++++--
1 files changed, 34 insertions(+), 2 deletions(-)
diff --git a/multi-system/src/main/resources/mapper/system/InternalAuditCheckCatalogueMapper.xml b/multi-system/src/main/resources/mapper/system/InternalAuditCheckCatalogueMapper.xml
index 114eec0..8dc506d 100644
--- a/multi-system/src/main/resources/mapper/system/InternalAuditCheckCatalogueMapper.xml
+++ b/multi-system/src/main/resources/mapper/system/InternalAuditCheckCatalogueMapper.xml
@@ -5,17 +5,46 @@
<insert id="insertBatch" useGeneratedKeys="true" keyProperty="id">
INSERT INTO internal_audit_check_catalogue (
check_id,
- catalogue_Id
+ catalogue_Id,
+ point_key
) VALUES
<foreach collection="catalogues" item="item" separator=",">
(
#{item.checkId},
- #{item.catalogueId}
+ #{item.catalogueId},
+ #{item.pointKey}
+ )
+ </foreach>
+ </insert>
+ <insert id="saveBatch">
+ INSERT INTO internal_audit_check_catalogue (
+ check_id,
+ catalogue_Id,
+ point_key,
+ find
+ ) VALUES
+ <foreach collection="list" item="item" separator=",">
+ (
+ #{item.checkId},
+ #{item.catalogueId},
+ #{item.pointKey},
+ #{item.find}
)
</foreach>
</insert>
<update id="updatebyCheckId">
update internal_audit_check_catalogue set del_flag =1 where check_id = #{id}
+ </update>
+ <update id="updateCheckCatalogues">
+ <foreach collection="list" item="item" separator=";">
+ UPDATE internal_audit_check_catalogue
+ <set>
+ <if test="item.pointKey != null">`point_key` = #{item.pointKey},</if>
+ <if test="item.find != null">`find` = #{item.find},</if>
+ <if test="item.result != null">`result` = #{item.result},</if>
+ </set>
+ WHERE `id` = #{item.id}
+ </foreach>
</update>
<select id="selectByCheckIds" resultType="com.gkhy.exam.system.domain.InternalAuditCheckCatalogue">
@@ -23,6 +52,9 @@
iacc.`id`,
iacc.`check_id`,
iacc.`catalogue_id`,
+ iacc.`point_key`,
+ iacc.`find`,
+ iacc.`result`,
c.`clause_num` as number,
c.`name` as mess,
iacc.`del_flag`
--
Gitblit v1.9.2