“djh”
2025-12-03 e32ac074e0cdc07b7551155e2e1c24684857f2b7
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`