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