select customer_code, user_id, is_consignee, is_independently, is_self_delivery, create_by, create_time, update_by, update_time, is_delete from sys_user_customer_authorization
insert into sys_user_customer_authorization
customer_code,
user_id,
is_consignee,
is_independently,
is_self_delivery,
create_by,
create_time,
update_by,
update_time,
is_delete,
#{customerCode},
#{userId},
#{isConsignee},
#{isIndependently},
#{isSelfDelivery},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{isDelete},
update sys_user_customer_authorization
user_id = #{userId},
is_consignee = #{isConsignee},
is_independently = #{isIndependently},
is_self_delivery = #{isSelfDelivery},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
is_delete = #{isDelete},
where customer_code = #{customerCode}
delete from sys_user_customer_authorization where customer_code = #{customerCode}
delete from sys_user_customer_authorization where customer_code in
#{customerCode}
update sys_user_customer_authorization
is_consignee = #{isConsignee},
is_independently = #{isIndependently},
is_self_delivery = #{isSelfDelivery},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
is_delete = #{isDelete},
where customer_code = #{customerCode} and user_id = #{userId}