liusheng
5 天以前 0bbbd746e8c39d91ad7b47a4e36e29ab972dc98c
ruoyi-template/src/main/resources/mapper/template/SvyTaskScriptMapper.xml
@@ -61,7 +61,10 @@
            <if test="scoretype != null  and scoretype != ''"> and scoretype = #{scoretype}</if>
            <if test="score != null  and score != ''"> and score = #{score}</if>
            <if test="showtype != null  and showtype != ''"> and showtype = #{showtype}</if>
            <if test="picturePath != null  and picturePath != ''"> and picture_path = #{picturePath}</if>
            <!-- 原为 `and picture_path = #{picturePath}`:svy_task_script 没有 picture_path 列
                 (本文件 resultMap / select 列清单里只有 script_picture),实体也没有
                 picturePath 属性 —— 两处都不存在,这条条件从来不可能生效。
                 按"只认真实列"删掉:图片由下面的 scriptPicture / script_picture 负责。 -->
    </select>
    <select id="selectSvyTaskScriptById" parameterType="Long" resultMap="SvyTaskScriptResult">
@@ -157,7 +160,8 @@
            <if test="scoretype != null">scoretype = #{scoretype},</if>
            <if test="score != null">score = #{score},</if>
            <if test="showtype != null">showtype = #{showtype},</if>
            <if test="picturePath != null">picture_path = #{picturePath},</if>
            <!-- 同上:picture_path 列与 picturePath 属性都不存在,删掉这条(否则一旦有人
                 给实体补上 picturePath,SQL 就会因 Unknown column 'picture_path' 报错)。 -->
            <if test="scriptPicture != null">script_picture = #{scriptPicture},</if>
        </trim>
        where id = #{id}