20241024.sql 272 Bytes EditWeb IDE 1 2 3 -- 增加报价单目的国字段 alter table ecw_offer add COLUMN dest_country_id bigint DEFAULT 0 comment '目的国id'; update ecw_offer o join ecw_warehouse_line l on o.line_id = l.id join ecw_warehouse w on w.id = l.dest_warehouse_id set o.dest_country_id = w.guojia;