update groups_relation
set start_time = null,
expiry_time = null,
status = #{entity.status},
renew_status = #{entity.renewStatus},
is_handle = #{entity.isHandle},
user_id = #{entity.userId},
account = null,
customer_service = null,
password = null,
recharge_status = null,
send_time = null,
submit_time = null,
operator = null,
yhs_id = 0,
cmt = 0,
aq_type = 1,
invite_link = null,
contact = null,
is_vip = 0,
recharge_num = null,
recharge_remain_num = null,
card_key = null,
gpt_task_id = null,
recharge_error_info = null,
bp_verify_code = null,
gpt_token = null,
is_frozen = 0,
unfrozen_time = null,
reserved_days = null,
recharge_remark = null,
is_recover = 0,
compensation_days = 0
where id = #{entity.id}
and expiry_time = #{expireTime}
update groups_relation set expiry_time = DATE_ADD(expiry_time,interval 1 day) where id = #{relationId} and user_id = #{userId}
update groups_relation set expiry_time = #{expiryTime},
update_time = now()
where id in (select * from(
select gr.id from groups_relation gr inner join groups_trips gt on gt.id = gr.groups_id
where gt.sku_id in
#{item}
and gr.user_id in
#{item}
and is_vip)s)