select id, station_id, order_no, oil_gun, oil_name, consumer_id, consumer, amt, station_name, order_liters, pay_type, pay_way, pay_date, oil_personnel, order_type, oil_type, print_num, class_structure_no, class_structure_date, class_structure_man, oils from station_class_structure
insert into station_class_structure
station_id,
order_no,
oil_gun,
oil_name,
consumer_id,
consumer,
amt,
station_name,
order_liters,
pay_type,
pay_way,
pay_date,
oil_personnel,
order_type,
oil_type,
print_num,
class_structure_no,
class_structure_date,
class_structure_man,
oils,
#{stationId},
#{orderNo},
#{oilGun},
#{oilName},
#{consumerId},
#{consumer},
#{amt},
#{stationName},
#{orderLiters},
#{payType},
#{payWay},
#{payDate},
#{oilPersonnel},
#{orderType},
#{oilType},
#{printNum},
#{classStructureNo},
#{classStructureDate},
#{classStructureMan},
#{oils},
update station_class_structure
station_id = #{stationId},
order_no = #{orderNo},
oil_gun = #{oilGun},
oil_name = #{oilName},
consumer_id = #{consumerId},
consumer = #{consumer},
amt = #{amt},
station_name = #{stationName},
order_liters = #{orderLiters},
pay_type = #{payType},
pay_way = #{payWay},
pay_date = #{payDate},
oil_personnel = #{oilPersonnel},
order_type = #{orderType},
oil_type = #{oilType},
print_num = #{printNum},
class_structure_no = #{classStructureNo},
class_structure_date = #{classStructureDate},
class_structure_man = #{classStructureMan},
oils = #{oils},
where id = #{id}
delete from station_class_structure where id = #{id}
delete from station_class_structure where id in
#{id}