select id, union_id, customer_name, record_type, integral, p.create_time, station_id, d.dept_name as station_name,order_no from customer_points_record p join sys_dept d on p.station_id = d.dept_id insert into customer_points_record union_id, customer_name, record_type, integral, create_time, station_id, order_no, #{unionId}, #{customerName}, #{recordType}, #{integral}, #{createTime}, #{stationId}, #{orderNo}, update customer_points_record union_id = #{unionId}, customer_name = #{customerName}, record_type = #{recordType}, integral = #{integral}, create_time = #{createTime}, station_id = #{stationId}, order_no = #{orderNo}, where id = #{id} delete from customer_points_record where id = #{id} delete from customer_points_record where id in #{id}