zouxuan 3 年之前
父节点
当前提交
247d8ad004
共有 1 个文件被更改,包括 1 次插入6 次删除
  1. 1 6
      mec-biz/src/main/resources/config/mybatis/SysUserCashAccountLogMapper.xml

+ 1 - 6
mec-biz/src/main/resources/config/mybatis/SysUserCashAccountLogMapper.xml

@@ -48,12 +48,7 @@
     <!-- 根据主键查询一条记录 -->
     <!-- 根据主键查询一条记录 -->
     <update id="update" parameterType="com.ym.mec.biz.dal.entity.SysUserCashAccountLog">
     <update id="update" parameterType="com.ym.mec.biz.dal.entity.SysUserCashAccountLog">
         UPDATE sys_user_cash_account_log
         UPDATE sys_user_cash_account_log
-        <set>
-            <if test="comment != null">comment_ = #{comment},</if>
-            <if test="transNo != null">trans_no_ = #{transNo},</if>
-            <if test="payTime != null">pay_time_ = #{payTime},</if>
-            update_time_ = NOW()
-        </set>
+        SET comment_ = #{comment},trans_no_ = #{transNo},pay_time_ = #{payTime},update_time_ = NOW()
         WHERE id_ = #{id}
         WHERE id_ = #{id}
     </update>
     </update>