소스 검색

明星机构排序优化

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">