张天森
2022-10-10 cf278d818b0f9d6b6b4f86334cb00fb114745ca8
flower_city/src/main/resources/mapper/GuideEvolveMapper.xml
@@ -72,6 +72,7 @@
        <if test="fromDepartmentalId != null and fromDepartmentalId != '' ">from_departmental_id,</if>
        <if test="videoUrl != null and videoUrl != '' ">video_url,</if>
        <if test="pictureUrl != null and pictureUrl != '' ">picture_url,</if>
        <if test="guidOrderNum != null and guidOrderNum != '' ">guide_order_num,</if>
        update_time,
        create_time
        )values(
@@ -88,6 +89,7 @@
        <if test="fromDepartmentalId != null and fromDepartmentalId != '' ">#{fromDepartmentalId},</if>
        <if test="videoUrl != null and videoUrl != '' ">#{videoUrl},</if>
        <if test="pictureUrl != null and pictureUrl != '' ">#{pictureUrl},</if>
        <if test="guidOrderNum != null and guidOrderNum != '' ">#{guidOrderNum},</if>
        sysdate(),
        sysdate()
        )
@@ -114,6 +116,12 @@
        where  id= #{Id}
    </update>
    <update id="updateGuid" parameterType="com.dg.core.db.gen.entity.GuideEvolveEntity">
        UPDATE automessage_guide_evolve
        SET guide_id = (SELECT id from automessage_guide_repair_order where order_num=automessage_guide_evolve.guide_order_num )
        WHERE guide_id IS NULL
    </update>
    <delete id="deleteConfigById" parameterType="string">
        delete from automessage_guide_evolve where id= #{Id}
    </delete>