he2802 2 年之前
父節點
當前提交
12480495cf

+ 1 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/user/domain/UserSubscribe.java

@@ -39,6 +39,7 @@ private static final long serialVersionUID=1L;
     /** 成绩 */
     private Long performance;
     /** 1通过 0不通过 */
+    @TableField(updateStrategy = FieldStrategy.IGNORED)
     private Integer result;
     /** 证书编号 */
     private String certificateCode;

+ 2 - 2
zhongzheng-system/src/main/resources/mapper/modules/user/UserSubscribeMapper.xml

@@ -750,13 +750,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         UPDATE
             user_subscribe
         SET
-            <if test="examStatus != null and examStatus != '' ">
+            <if test="examStatus != null">
                 exam_status = #{examStatus},
             </if>
             <if test="performance != null and performance != '' ">
                 performance = #{performance},
             </if>
-            <if test="result != null and result != '' ">
+            <if test="result != null">
                 `result` = #{result},
             </if>
             <if test="certificateCode != null and certificateCode != '' ">