|
|
@@ -61,8 +61,7 @@ |
|
|
|
`login_count`, `extra_info`, `is_subscribe`, |
|
|
|
`open_app_id`, |
|
|
|
`mp_open_id`,`mp_app_id`,`mp_subscribe`,`mp_subscribe_time`,`mp_subscribe_scene`, |
|
|
|
`subs_open_id`,`subs_app_id`,`subs_subscribe`,`subs_subscribe_time`,`subs_subscribe_scene`,`credit`,`active_time`,`qr_code`, |
|
|
|
`authorize_state`,`authorize_time`, `deauthorize_time` |
|
|
|
`subs_open_id`,`subs_app_id`,`subs_subscribe`,`subs_subscribe_time`,`subs_subscribe_scene`,`credit`,`active_time`,`qr_code` |
|
|
|
</sql> |
|
|
|
|
|
|
|
<sql id="dynamicWhereConditions"> |
|
|
@@ -219,10 +218,6 @@ |
|
|
|
and `credit` = #{credit} |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != authorizeState "> |
|
|
|
and `authorize_state` = #{authorizeState} |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != ids "> |
|
|
|
and id in |
|
|
|
<foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> |
|
|
@@ -458,17 +453,4 @@ |
|
|
|
select id from wx_c_user where user_id=#{userId} and tenant_id = #{tenantId} |
|
|
|
</select> |
|
|
|
|
|
|
|
<update id="updateAuthorizeStateByOpenId" parameterType="com.iformall.domain.po.WxCUser"> |
|
|
|
update wx_c_user |
|
|
|
set `authorize_state` = #{authorizeState} |
|
|
|
<if test=" null != authorizeTime"> |
|
|
|
,`authorize_time` = #{authorizeTime} |
|
|
|
</if> |
|
|
|
<if test=" null != deauthorizeTime"> |
|
|
|
,`deauthorize_time` = #{deauthorizeTime} |
|
|
|
</if> |
|
|
|
WHERE `tenant_id` = #{tenantId} |
|
|
|
and `open_id` = #{openId} |
|
|
|
and `authorize_state` != #{authorizeState} |
|
|
|
</update> |
|
|
|
</mapper> |