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