Browse Source

fix mapper xml sql

xiewj 2 years ago
parent
commit
ff2a8b4e78
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/main/resources/mapper/www/system/UserMapper.xml

+ 2 - 2
src/main/resources/mapper/www/system/UserMapper.xml

@@ -23,10 +23,10 @@
         update t_users_auth_info
         <choose>
             <when test="type != null and type == 1">
-                set call_counts = call_counts+1
+                set call_counts = call_counts+#{count}
             </when>
             <when test="type != null and type == 2">
-                set call_counts = call_counts-1
+                set call_counts = call_counts-#{count}
             </when>
         </choose>
         <where>