select id, integral_order_no, wares_type, wares_name, wares_id, union_id, customer_name, exchange_num, exchange_time,
p.status, integral, station_id,d.dept_name as station_name,mobile_phone
from integral_order p join sys_dept d on p.station_id =d.dept_id
insert into integral_order
integral_order_no,wares_type,wares_name,wares_id,union_id,customer_name,exchange_num,exchange_time,status,integral,station_id, mobile_phone,#{integralOrderNo},#{waresType},#{waresName},#{waresId},#{unionId},#{customerName},#{exchangeNum},#{exchangeTime},#{status},#{integral},#{stationId},#{mobilePhone},
update integral_order
integral_order_no = #{integralOrderNo},wares_type = #{waresType},wares_name = #{waresName},wares_id = #{waresId},union_id = #{unionId},customer_name = #{customerName},exchange_num = #{exchangeNum},exchange_time = #{exchangeTime},status = #{status},integral = #{integral},station_id = #{stationId}, mobile_phone = #{mobilePhone},
where id = #{id}
delete from integral_order where id = #{id}
delete from integral_order where id in
#{id}