id, app_user_id, phone, name, benefit_type, scope_type, partner_id, company_id, fleet_id, balance, status, create_by, create_time, update_by, update_time, remark, del_flag
update t_app_user_whitelist
app_user_id = #{appUserId},
phone = #{phone},
name = #{name},
benefit_type = #{benefitType},
scope_type = #{scopeType},
partner_id = #{partnerId},
company_id = #{companyId},
fleet_id = #{fleetId},
balance = #{balance},
status = #{status},
update_by = #{updateBy},
update_time = now(),
remark = #{remark},
del_flag = #{delFlag}
where id = #{id}
update t_app_user_whitelist
set balance = IFNULL(balance, 0) + #{amount}, update_time = now(), update_by = #{updateBy}
where id = #{id} and del_flag = 0
update t_app_user_whitelist
set balance = 0, update_time = now(), update_by = #{updateBy}
where id = #{id} and del_flag = 0 and balance > 0