liusheng
2024-04-26 b220383758021bcb26d0a788ebe9a31795d23b6d
smartor/src/main/resources/mapper/smartor/SvyLibTopicMapper.xml
@@ -29,11 +29,15 @@
        <result property="isavailable" column="isavailable"/>
        <result property="language" column="language"/>
        <result property="otherdata" column="otherdata"/>
        <result property="valueType" column="value_type"/>
        <result property="reply" column="reply"/>
    </resultMap>
    <sql id="selectSvyLibTopicVo">
        select topicid,
               oldid,
               value_type,
               reply,
               svyid,
               topictype,
               topiccode,
@@ -55,7 +59,7 @@
               suitway,
               isavailable,
               otherdata,
               language,
            language,
            svy_topicid as svyTopicId
        from svy_lib_topic
    </sql>
@@ -112,6 +116,8 @@
            <if test="isavailable != null and isavailable != ''">isavailable,</if>
            <if test="language != null and language!=''">language,</if>
            <if test="otherdata != null and otherdata!=''">otherdata,</if>
            <if test="valueType != null and valueType!=''">value_type,</if>
            <if test="reply != null and reply!=''">otherdata,</if>
        </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
            <if test="oldid != null">#{oldid},</if>
@@ -138,6 +144,8 @@
            <if test="isavailable != null and isavailable != ''">#{isavailable},</if>
            <if test="language != null  and language!=''">#{language},</if>
            <if test="otherdata != null and otherdata!=''">#{otherdata},</if>
            <if test="valueType != null and valueType!=''">#{valueType},</if>
            <if test="reply != null and reply!=''">#{therdata},</if>
        </trim>
    </insert>
@@ -167,6 +175,8 @@
            <if test="tag != null">tag = #{tag},</if>
            <if test="language != null and language!=''">language = #{language},</if>
            <if test="otherdata != null and otherdata!=''">otherdata = #{otherdata},</if>
            <if test="valueType != null and valueType!=''">value_type = #{valueType},</if>
            <if test="reply != null and reply!=''">therdata =#{therdata},</if>
        </trim>
        where topicid = #{topicid}
    </update>
@@ -187,4 +197,4 @@
    </delete>
</mapper>
</mapper>