select id, rule_name, tray_type, tray_length, tray_width, allowed_warehouses,
allowed_warehouse_names, allowed_cargo_type, allowed_cargo_type_name,
remark, create_by, create_time, update_by, update_time
from bas_tray_rule
insert into bas_tray_rule
id,
rule_name,
tray_type,
tray_length,
tray_width,
allowed_warehouses,
allowed_warehouse_names,
allowed_cargo_type,
allowed_cargo_type_name,
remark,
create_by,
create_time,
update_by,
update_time,
#{id},
#{ruleName},
#{trayType},
#{trayLength},
#{trayWidth},
#{allowedWarehouses},
#{allowedWarehouseNames},
#{allowedCargoType},
#{allowedCargoTypeName},
#{remark},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
update bas_tray_rule
rule_name = #{ruleName},
tray_type = #{trayType},
tray_length = #{trayLength},
tray_width = #{trayWidth},
allowed_warehouses = #{allowedWarehouses},
allowed_warehouse_names = #{allowedWarehouseNames},
allowed_cargo_type = #{allowedCargoType},
allowed_cargo_type_name = #{allowedCargoTypeName},
remark = #{remark},
update_by = #{updateBy},
update_time = #{updateTime},
where id = #{id}
delete from bas_tray_rule where id = #{id}
delete from bas_tray_rule where id in
#{id}