liusheng
2024-07-20 37f2e4e68c0d55e094981fa478fc198b907f87dc
smartor/src/main/resources/mapper/smartor/SvyLibTemplateTargetoptionMapper.xml
@@ -39,12 +39,14 @@
        <result property="score" column="score"/>
        <result property="appendflag" column="appendflag"/>
        <result property="appenddesc" column="appenddesc"/>
        <result property="optionNo" column="option_no"/>
    </resultMap>
    <sql id="selectSvyLibTemplateTargetoptionVo">
        select id,
               groupid,
               score,
               option_no,
               appendflag,
               appenddesc,
               categoryName,
@@ -103,6 +105,7 @@
            <if test="picturePath != null  and picturePath != ''">and picture_path = #{picturePath}</if>
            <if test="appendflag != null">and appendflag = #{appendflag}</if>
            <if test="appenddesc != null">and appenddesc = #{appenddesc}</if>
            <if test="optionNo != null">and option_no = #{optionNo}</if>
        </where>
    </select>
@@ -148,6 +151,7 @@
            <if test="score != null">score,</if>
            <if test="appendflag != null">appendflag,</if>
            <if test="appenddesc != null">appenddesc,</if>
            <if test="optionNo != null">option_no,</if>
        </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
            <if test="groupid != null">#{groupid},</if>
@@ -183,6 +187,7 @@
            <if test="score != null">#{score},</if>
            <if test="appendflag != null">#{appendflag},</if>
            <if test="appenddesc != null">#{appenddesc},</if>
            <if test="optionNo != null">#{optionNo},</if>
        </trim>
    </insert>
@@ -222,6 +227,7 @@
            <if test="score != null">score = #{score},</if>
            <if test="appendflag != null">appendflag = #{appendflag},</if>
            <if test="appenddesc != null">appenddesc = #{appenddesc},</if>
            <if test="optionNo != null">option_no = #{optionNo},</if>
        </trim>
        where id = #{id}
    </update>