liusheng
2023-06-15 77d7257c02fc811a53b8d9207e4239f69c8a600c
smartor/src/main/resources/mapper/smartor/SvyLibTopicoptionMapper.xml
@@ -39,7 +39,38 @@
    </resultMap>
    <sql id="selectSvyLibTopicoptionVo">
        select optionid, topicid, svyid, topictype, optioncode, optioncontent, isexistdetail, detailismandatory, isexceptionitem, istrack, score, prompt, jump, parentoptionid, ismutex, verifyrule, sort, verificationtype, isrange, minrange, maxrange, rangelength, orgid, oldid, del_flag, create_by, create_time, update_by, update_time, isupload, upload_time from svy_lib_topicoption
        select optionid,
               topicid,
               svyid,
               topictype,
               optioncode,
               optioncontent,
               isexistdetail,
               detailismandatory,
               isexceptionitem,
               istrack,
               score,
               prompt,
               jump,
               parentoptionid,
               ismutex,
               verifyrule,
               sort,
               verificationtype,
               isrange,
               minrange,
               maxrange,
               rangelength,
               orgid,
               oldid,
               del_flag,
               create_by,
               create_time,
               update_by,
               update_time,
               isupload,
               upload_time
        from svy_lib_topicoption
    </sql>
    <select id="selectSvyLibTopicoptionList" parameterType="SvyLibTopicoption" resultMap="SvyLibTopicoptionResult">
@@ -78,7 +109,8 @@
        where optionid = #{optionid}
    </select>
        
    <insert id="insertSvyLibTopicoption" parameterType="SvyLibTopicoption" useGeneratedKeys="true" keyProperty="optionid">
    <insert id="insertSvyLibTopicoption" parameterType="SvyLibTopicoption" useGeneratedKeys="true"
            keyProperty="optionid">
        insert into svy_lib_topicoption
        <trim prefix="(" suffix=")" suffixOverrides=",">
            <if test="topicid != null">topicid,</if>
@@ -184,7 +216,9 @@
    </update>
    <delete id="deleteSvyLibTopicoptionByOptionid" parameterType="Long">
        delete from svy_lib_topicoption where optionid = #{optionid}
        delete
        from svy_lib_topicoption
        where optionid = #{optionid}
    </delete>
    <delete id="deleteSvyLibTopicoptionByOptionids" parameterType="String">
@@ -193,4 +227,6 @@
            #{optionid}
        </foreach>
    </delete>
</mapper>