ソースを参照

明星机构排序优化

JiangChongBo 2 年 前
コミット
1ae4f78f5c
1 ファイル変更8 行追加1 行削除
  1. 8 1
      src/main/resources/mapper/AuthMapper.xml

+ 8 - 1
src/main/resources/mapper/AuthMapper.xml

@@ -115,7 +115,14 @@
     <update id="starAuth">
         update cm_brand_auth
         set starFlag = #{starFlag},
-            starNum=#{starNum}
+        <choose>
+            <when test="starNum != null and starNum != ''">
+                starNum=#{starNum}
+            </when>
+            <otherwise>
+                starNum=null
+            </otherwise>
+        </choose>
         where id = #{authId}
     </update>
     <update id="addScanCount">