liusheng
5 天以前 cc479e6a056785103996cc7ea67dbd5faa3e800e
ruoyi-template/src/main/resources/mapper/template/SvyLibScriptMapper.xml
@@ -138,7 +138,9 @@
            <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>
            <!-- 原为 `otherdata,`:与上面那条重复写同一个列(reply 的内容会盖掉 otherdata),
                 表里 reply 是独立列(见本文件 resultMap: property="reply" column="reply")。 -->
            <if test="reply != null and reply!=''">reply,</if>
            <if test="scoretype != null and scoretype!=''">scoretype,</if>
            <if test="score != null ">score,</if>
            <if test="icd10Name != null and icd10Name!=''">icd10_name,</if>
@@ -173,7 +175,9 @@
            <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>
            <!-- 原为 `#{therdata}`:实体上没有 therdata(是 otherdata 的错拼),
                 运行期抛 ReflectionException。列与属性都按 reply 取。 -->
            <if test="reply != null and reply!=''">#{reply},</if>
            <if test="scoretype != null and scoretype!=''">#{scoretype},</if>
            <if test="score != null ">#{score},</if>
            <if test="icd10Name != null and icd10Name!=''">#{icd10Name},</if>
@@ -212,7 +216,10 @@
            <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>
            <!-- 原为 `therdata =#{therdata}`:同一列 otherdata 已被上面赋过值,
                 MySQL 会报 "Column 'otherdata' specified twice",且属性 therdata 不存在。
                 按 reply 列 + reply 属性修正。 -->
            <if test="reply != null and reply!=''">reply = #{reply},</if>
            <if test="scoretype != null and scoretype!=''">scoretype = #{scoretype},</if>
            <if test="score != null">score = #{score},</if>
            <if test="icd10Name != null and icd10Name!=''">icd10_name = #{icd10Name},</if>