select c.id, c.union_id,c.customer_no,c.customer_name, c.mobile_phone, c.amt, c.card_oils_type,
c.station_id,d.dept_name as station_name, c.create_time, c.recently_time
from customer_electronic_card c join sys_dept d on c.station_id =d.dept_id
insert into customer_electronic_card
union_id,customer_no,customer_name,mobile_phone,amt,card_oils_type,station_id,create_time,recently_time,#{unionId},#{customerNo},#{customerName},#{mobilePhone},#{amt},#{cardOilsType},#{stationId},#{createTime},#{recentlyTime},
update customer_electronic_card
union_id = #{unionId},customer_no = #{customerNo},customer_name = #{customerName},mobile_phone = #{mobilePhone},amt = #{amt},card_oils_type = #{cardOilsType},station_id = #{stationId},create_time = #{createTime},recently_time = #{recentlyTime},
where id = #{id}
delete from customer_electronic_card where id = #{id}
delete from customer_electronic_card where id in
#{id}