|
@@ -1,7 +1,7 @@
|
|
|
-- 20241022
|
|
|
-- 进口商新增字段
|
|
|
ALTER TABLE `importer_entity`
|
|
|
- ADD COLUMN `business_category` varchar(256) DEFAULT '' COMMENT '经营品类' AFTER `vat_no`;
|
|
|
+ ADD COLUMN `business_category` varchar(255) DEFAULT '' COMMENT '经营品类' AFTER `vat_no`;
|
|
|
|
|
|
ALTER TABLE `importer_entity`
|
|
|
ADD COLUMN `trading_life` varchar(16) DEFAULT '' COMMENT '交易年限(M/Y)' AFTER `business_category`;
|
|
@@ -16,7 +16,7 @@ ALTER TABLE `importer_entity`
|
|
|
ADD COLUMN `trading_amount_past_year_currency` varchar(3) DEFAULT '' COMMENT '过去一年双方交易额币种' AFTER `trading_amount_past_year`;
|
|
|
|
|
|
ALTER TABLE `importer_entity`
|
|
|
- ADD COLUMN `amount_to_be_applied` DECIMAL(17, 2) DEFAULT 0 COMMENT '拟申请额度金额' AFTER `amount_trading_past_year_currency`;
|
|
|
+ ADD COLUMN `amount_to_be_applied` DECIMAL(17, 2) DEFAULT 0 COMMENT '拟申请额度金额' AFTER `trading_amount_past_year_currency`;
|
|
|
|
|
|
ALTER TABLE `importer_entity`
|
|
|
ADD COLUMN `amount_to_be_applied_currency` varchar(3) DEFAULT '' COMMENT '拟申请额度金额币种' AFTER `amount_to_be_applied`;
|
|
@@ -29,12 +29,15 @@ ALTER TABLE `importer_entity`
|
|
|
DROP TABLE IF EXISTS `filing_doc_write_task`;
|
|
|
CREATE TABLE `filing_doc_write_task`
|
|
|
(
|
|
|
- `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键id',
|
|
|
- `cert_no` varchar(50) NOT NULL COMMENT '企业证件号',
|
|
|
- `biz_no` varchar(50) NOT NULL COMMENT '业务编号',
|
|
|
- `part` tinyint(4) DEFAULT 1 COMMENT '阶段',
|
|
|
- `status` tinyint(4) DEFAULT 0 COMMENT '状态',
|
|
|
- `remark` varchar(128) DEFAULT '' COMMENT '备注',
|
|
|
+ `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键id',
|
|
|
+ `cert_no` varchar(50) NOT NULL COMMENT '企业证件号',
|
|
|
+ `biz_no` varchar(50) NOT NULL COMMENT '业务编号',
|
|
|
+ `part` tinyint(4) DEFAULT 1 COMMENT '阶段',
|
|
|
+ `status` tinyint(4) DEFAULT 0 COMMENT '状态',
|
|
|
+ `agent_ind` tinyint(2) DEFAULT 0 COMMENT '是否为代理',
|
|
|
+ `remark` varchar(128) DEFAULT '' COMMENT '备注',
|
|
|
+ `gmt_create` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
|
|
+ `gmt_modified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
|
|
|
PRIMARY KEY (`id`)
|
|
|
) ENGINE = InnoDB
|
|
|
DEFAULT CHARSET = utf8mb4 COMMENT ='备案单证写入小图任务';
|
|
@@ -76,3 +79,38 @@ where name in (
|
|
|
'朝鲜', '苏丹', '厄立特里亚', '伊拉克', '利比亚', '刚果(金)', '也门', '南苏丹', '黎巴嫩',
|
|
|
'马里', '索马里', '伊朗', '科特迪瓦', '叙利亚', '古巴', '俄罗斯', '委内瑞拉', '缅甸',
|
|
|
'布隆迪', '津巴布韦', '白俄罗斯', '北苏丹');
|
|
|
+
|
|
|
+
|
|
|
+-- 销售订单物流新增字段
|
|
|
+ALTER TABLE `sales_order_logistics`
|
|
|
+ ADD COLUMN `shipping_method` varchar(64) DEFAULT '' COMMENT '运输方式' AFTER `lading_date`;
|
|
|
+ALTER TABLE `sales_order_logistics`
|
|
|
+ ADD COLUMN `shipping_fee` DECIMAL(17, 6) DEFAULT NULL COMMENT '运费金额' AFTER `shipping_method`;
|
|
|
+ALTER TABLE `sales_order_logistics`
|
|
|
+ ADD COLUMN `insurance_fee` DECIMAL(17, 6) DEFAULT NULL COMMENT '保费金额' AFTER `shipping_fee`;
|
|
|
+ALTER TABLE `sales_order_logistics`
|
|
|
+ ADD COLUMN `other_fee` DECIMAL(17, 6) DEFAULT NULL COMMENT '杂费金额' AFTER `insurance_fee`;
|
|
|
+
|
|
|
+
|
|
|
+-- 新增sop 请求日志
|
|
|
+CREATE TABLE `sop_request_log`
|
|
|
+(
|
|
|
+ `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键ID',
|
|
|
+ `customer_user_id` bigint(20) unsigned NOT NULL COMMENT '用户ID',
|
|
|
+ `trans_code` varchar(100) DEFAULT '' COMMENT '接口交易码',
|
|
|
+ `request_payload` json DEFAULT NULL COMMENT '请求业务数据',
|
|
|
+ `response` json DEFAULT NULL COMMENT '响应体数据',
|
|
|
+ `success` tinyint(3) unsigned DEFAULT '0' COMMENT '请求结果,0 - 失败 ; 1 - 成功',
|
|
|
+ `remark` varchar(5000) DEFAULT '' COMMENT '请求失败原因',
|
|
|
+ `gmt_create` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
|
|
+ `gmt_modified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
|
|
|
+ PRIMARY KEY (`id`),
|
|
|
+ KEY `idx_identifier` (`customer_user_id`),
|
|
|
+ KEY `idx_trans_code` (`trans_code`)
|
|
|
+) ENGINE = InnoDB
|
|
|
+ DEFAULT CHARSET = utf8
|
|
|
+ ROW_FORMAT = COMPACT COMMENT ='SOP接口请求日志';
|
|
|
+
|
|
|
+-- 供应商表新增税号
|
|
|
+ALTER TABLE `vendor_entity`
|
|
|
+ ADD COLUMN `vat_no` varchar(64) DEFAULT '' COMMENT '税号' AFTER `business_address`;
|