select a.id, a.pro_id, a.user_id, a.create_time, a.amount, a.rate, a.interest, a.status, a.final_repay_time,
a.disburse_time, a.return_time, a.disburse_amount, a.admin_parent_ids, a.card_url, a.card_back_url,
a.capital_url, a.license_url, a.order_no, a.cycle_type, a.remark, a.create_by, a.update_by, a.update_time, a.search_value,
p.id p_id, p.amount_min p_amount_min, p.amount_max p_amount_max, p.cycle_type p_cycle_type, p.repay_type p_repay_type, p.status p_status, p.create_by p_create_by,
p.create_time p_create_time, p.update_by p_update_by, p.update_time p_update_time, p.remark p_remark, p.search_value p_search_value,
p.odds p_odds, p.repay_org p_repay_org, p.is_freeze p_is_freeze
from t_load_order a
left join t_load_product p on p.id = a.pro_id
insert into t_load_order
pro_id,
user_id,
create_time,
amount,
rate,
interest,
status,
final_repay_time,
disburse_time,
return_time,
disburse_amount,
admin_parent_ids,
card_url,
card_back_url,
capital_url,
license_url,
order_no,
cycle_type,
remark,
create_by,
update_by,
update_time,
search_value,
#{proId},
#{userId},
#{createTime},
#{amount},
#{rate},
#{interest},
#{status},
#{finalRepayTime},
#{disburseTime},
#{returnTime},
#{disburseAmount},
#{adminParentIds},
#{cardUrl},
#{cardBackUrl},
#{capitalUrl},
#{licenseUrl},
#{orderNo},
#{cycleType},
#{remark},
#{createBy},
#{updateBy},
#{updateTime},
#{searchValue},
update t_load_order
pro_id = #{proId},
user_id = #{userId},
create_time = #{createTime},
amount = #{amount},
rate = #{rate},
interest = #{interest},
status = #{status},
final_repay_time = #{finalRepayTime},
disburse_time = #{disburseTime},
return_time = #{returnTime},
disburse_amount = #{disburseAmount},
admin_parent_ids = #{adminParentIds},
card_url = #{cardUrl},
card_back_url = #{cardBackUrl},
capital_url = #{capitalUrl},
license_url = #{licenseUrl},
order_no = #{orderNo},
cycle_type = #{cycleType},
remark = #{remark},
create_by = #{createBy},
update_by = #{updateBy},
update_time = #{updateTime},
search_value = #{searchValue},
where id = #{id}
delete from t_load_order where id = #{id}
delete from t_load_order where id in
#{id}