select order_id, order_no, station_id,d.dept_name as station_name, p.status,consumer_id, consumer, oil_gun, oil_name, oil_pirce, oil_type, order_liters, amt, receivable_amt, received_amt, discount_amt,sell_oil_price,driver_oil_price,oil_personnel_id, discount_coupon_amt, discount_coupon, wx_amt, zfb_amt, pos_amt, xj_amt, didi_app_amt, ty_app_amt, other_amt, dzk_amt, score, member_no, member_amt, print_count, pay_type, pay_way, oil_personnel, pay_date, created_date, order_type, car_no, customer_phone, customer_grade,sell_amt,sell_discount_amt,driver_discount_amt, examin_user,examin_date,refund_user,refund_date,examin_status,refund_success_date from pay_order p join sys_dept d on p.station_id =d.dept_id insert into pay_order order_no, station_id, status, consumer_id, consumer, oil_gun, oil_name, oil_pirce, oil_type, order_liters, amt, receivable_amt, received_amt, discount_amt, discount_coupon_amt, discount_coupon, wx_amt, zfb_amt, pos_amt, xj_amt, didi_app_amt, ty_app_amt, other_amt, dzk_amt, score, member_no, member_amt, print_count, pay_type, pay_way, oil_personnel, pay_date, created_date, order_type, car_no, customer_phone, customer_grade, refund_user, refund_date, examin_user, examin_date, examin_status, refund_success_date, #{orderNo}, #{stationId}, #{status}, #{consumerId}, #{consumer}, #{oilGun}, #{oilName}, #{oilPirce}, #{oilType}, #{orderLiters}, #{amt}, #{receivableAmt}, #{receivedAmt}, #{discountAmt}, #{discountCouponAmt}, #{discountCoupon}, #{wxAmt}, #{zfbAmt}, #{posAmt}, #{xjAmt}, #{didiAppAmt}, #{tyAppAmt}, #{otherAmt}, #{dzkAmt}, #{score}, #{memberNo}, #{memberAmt}, #{printCount}, #{payType}, #{payWay}, #{oilPersonnel}, #{payDate}, #{createdDate}, #{orderType}, #{carNo}, #{customerPhone}, #{customerGrade}, #{refundUser}, #{refundDate}, #{examinUser}, #{examinDate}, #{examinStatus}, #{refundSuccessDate}, update pay_order order_no = #{orderNo}, station_id = #{stationId}, status = #{status}, consumer_id = #{consumerId}, consumer = #{consumer}, oil_gun = #{oilGun}, oil_name = #{oilName}, oil_pirce = #{oilPirce}, oil_type = #{oilType}, order_liters = #{orderLiters}, amt = #{amt}, receivable_amt = #{receivableAmt}, received_amt = #{receivedAmt}, discount_amt = #{discountAmt}, discount_coupon_amt = #{discountCouponAmt}, discount_coupon = #{discountCoupon}, wx_amt = #{wxAmt}, zfb_amt = #{zfbAmt}, pos_amt = #{posAmt}, xj_amt = #{xjAmt}, didi_app_amt = #{didiAppAmt}, ty_app_amt = #{tyAppAmt}, other_amt = #{otherAmt}, dzk_amt = #{dzkAmt}, score = #{score}, member_no = #{memberNo}, member_amt = #{memberAmt}, print_count = #{printCount}, pay_type = #{payType}, pay_way = #{payWay}, oil_personnel = #{oilPersonnel}, pay_date = #{payDate}, created_date = #{createdDate}, order_type = #{orderType}, car_no = #{carNo}, customer_phone = #{customerPhone}, customer_grade = #{customerGrade}, refund_user = #{refundUser}, refund_date = #{refundDate}, examin_user = #{examinUser}, examin_date = #{examinDate}, examin_status = #{examinStatus}, refund_success_date = #{refundSuccessDate}, where order_id = #{orderId} delete from pay_order where order_id = #{orderId} delete from pay_order where order_id in #{orderId}