Selaa lähdekoodia

fix mapper xml sql

xiewj 2 vuotta sitten
vanhempi
commit
3b06463a51
1 muutettua tiedostoa jossa 4 lisäystä ja 6 poistoa
  1. 4 6
      src/main/resources/mapper/www/system/UserMapper.xml

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

@@ -21,14 +21,12 @@
     </update>
     <update id="updateCallCountsByParamAndType">
         update t_users_auth_info
-        <choose>
-            <when test="type != null and type == 1">
+            <if test="type != null and type == 1">
                 set call_counts = call_counts+#{count}
-            </when>
-            <when test="type != null and type == 2">
+            </if>
+            <if test="type != null and type == 2">
                 set call_counts = call_counts-#{count}
-            </when>
-        </choose>
+            </if>
         <where>
             <if test="appKey != null and appKey != ''">
                 appKey = #{appKey}