etrade_order_v1.1.2_fengliang.sql 281 Bytes
ALTER TABLE `zr_etrade`.`order_payment`
    ADD COLUMN `pay_channel_sub` tinyint NULL COMMENT '园区卡支付子分类';

UPDATE zr_etrade.`order_payment` payment LEFT JOIN zr_etrade.`order` ord ON payment.order_id = ord.id
SET payment.pay_channel_sub = 1
WHERE ord.order_type = 2