select id, del_flag, create_by, create_time, update_by, update_time, remark, username, nickname, gender, avatar, phone, password, openid, status, email, birthday, invitation_code, payment_url, login_time, balance, superior_id, user_id, source, ip, country, dept_id from ai_user insert into ai_user del_flag, create_by, create_time, update_by, update_time, remark, username, nickname, gender, avatar, phone, password, openid, status, email, birthday, invitation_code, payment_url, login_time, balance, superior_id, user_id, source, ip, country, dept_id, #{delFlag}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, #{remark}, #{username}, #{nickname}, #{gender}, #{avatar}, #{phone}, #{password}, #{openid}, #{status}, #{email}, #{birthday}, #{invitationCode}, #{paymentUrl}, #{loginTime}, #{balance}, #{superiorId}, #{userId}, #{source}, #{country}, #{deptId}, update ai_user del_flag = #{delFlag}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, remark = #{remark}, username = #{username}, nickname = #{nickname}, gender = #{gender}, avatar = #{avatar}, phone = #{phone}, password = #{password}, openid = #{openid}, status = #{status}, email = #{email}, birthday = #{birthday}, invitation_code = #{invitationCode}, payment_url = #{paymentUrl}, login_time = #{loginTime}, balance = #{balance}, superior_id = #{superiorId}, user_id = #{userId}, source = #{source}, ip = #{ip}, country = #{country}, dept_id = #{deptId}, where id = #{id} UPDATE users SET balance = balance + #{amount} WHERE id = #{id}; delete from ai_user where id = #{id} delete from ai_user where id in #{id}