init2
This commit is contained in:
81
doc/sql/otc-increase.sql
Normal file
81
doc/sql/otc-increase.sql
Normal file
@@ -0,0 +1,81 @@
|
||||
|
||||
# 2024-04-18 新增云盟商家统计表 已执行
|
||||
DROP TABLE IF EXISTS `otc_statics_summary`;
|
||||
CREATE TABLE `otc_statics_summary`
|
||||
(
|
||||
`id` bigint(20) NOT NULL COMMENT '主键',
|
||||
`total_deal_num` int(20) not null default 0 comment '总成交笔数',
|
||||
`total_deal_amount` decimal(20, 2) not null default 0 comment '总成交金额',
|
||||
`total_deal_points` decimal(20, 2) not null default 0 comment '总成交抵扣券',
|
||||
`total_pending_num` int(20) not null default 0 comment '总挂单量',
|
||||
`total_pending_amount` decimal(20, 2) not null default 0 comment '总挂单金额',
|
||||
`buy_order_deal_num` int(20) not null default 0 comment '心愿单成交笔数',
|
||||
`buy_order_pending_num` int(20) not null default 0 comment '心愿单挂单量',
|
||||
`buy_order_deal_amount` decimal(20, 2) not null default 0 comment '心愿单成交金额',
|
||||
`buy_order_deal_points` decimal(20, 2) not null default 0 comment '心愿单成交抵扣券',
|
||||
`sell_order_deal_num` int(20) not null default 0 comment '带货单成交笔数',
|
||||
`sell_order_pending_num` int(20) not null default 0 comment '带货单挂单量',
|
||||
`sell_order_deal_amount` decimal(20, 2) not null default 0 comment '带货单成交金额',
|
||||
`sell_order_deal_points` decimal(20, 2) not null default 0 comment '带货单成抵扣券',
|
||||
`settle_date` datetime(0) not null comment '汇总日期',
|
||||
`remark` varchar(255) NULL COMMENT '备注',
|
||||
`create_user` bigint(0) NULL DEFAULT NULL COMMENT '创建人',
|
||||
`create_dept` bigint(0) NULL DEFAULT NULL COMMENT '创建部门',
|
||||
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_user` bigint(0) NULL DEFAULT NULL COMMENT '修改人',
|
||||
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
|
||||
`status` int(0) NULL DEFAULT NULL COMMENT '状态',
|
||||
`is_deleted` int(0) NULL DEFAULT NULL COMMENT '是否已删除',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB
|
||||
CHARACTER SET = utf8mb4
|
||||
COLLATE = utf8mb4_general_ci COMMENT = '云盟商家统计汇总'
|
||||
ROW_FORMAT = Dynamic;
|
||||
|
||||
# 2024-04-18 新增云盟商家统计详情表 已执行
|
||||
DROP TABLE IF EXISTS `otc_statics_details`;
|
||||
CREATE TABLE `otc_statics_details`
|
||||
(
|
||||
`id` bigint(20) NOT NULL COMMENT '主键',
|
||||
`statics_summary_id` bigint(20) NOT NULL COMMENT '汇总主键',
|
||||
`registration_order_id` bigint(20) NOT NULL COMMENT '挂单主键',
|
||||
`user_id` bigint(20) NOT NULL COMMENT '用户主键',
|
||||
`seller_id` bigint(20) NOT NULL COMMENT '卖家主键',
|
||||
`top_invitor_id` bigint(20) NOT NULL COMMENT '卖家邀请人主键',
|
||||
`district_id` bigint(20) NOT NULL COMMENT '地区主键',
|
||||
`city_id` bigint(20) NOT NULL COMMENT '城市主键',
|
||||
`province_id` bigint(20) NOT NULL COMMENT '省份主键',
|
||||
`sku_id` bigint(20) NOT NULL COMMENT 'sku主键',
|
||||
`sku_name` varchar(255) NOT NULL COMMENT '商品名称',
|
||||
`spu_id` bigint(20) NOT NULL COMMENT 'spu主键',
|
||||
`category_id` bigint(20) NOT NULL COMMENT '分类主键',
|
||||
`quantity` bigint(20) not null default 0 comment '数量',
|
||||
`sale_price` decimal(20, 2) not null default 0 comment '销售价格',
|
||||
`total_amount` decimal(20, 2) not null default 0 comment '成交金额',
|
||||
`given_points_amount` decimal(20, 2) not null default 0 comment '赠送抵扣券金额',
|
||||
`transaction_type` int(0) not null default 0 comment '交易类型',
|
||||
`remark` varchar(255) NULL COMMENT '备注',
|
||||
`create_user` bigint(0) NULL DEFAULT NULL COMMENT '创建人',
|
||||
`create_dept` bigint(0) NULL DEFAULT NULL COMMENT '创建部门',
|
||||
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_user` bigint(0) NULL DEFAULT NULL COMMENT '修改人',
|
||||
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
|
||||
`status` int(0) NULL DEFAULT NULL COMMENT '状态',
|
||||
`is_deleted` int(0) NULL DEFAULT NULL COMMENT '是否已删除',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB
|
||||
CHARACTER SET = utf8mb4
|
||||
COLLATE = utf8mb4_general_ci COMMENT = '云盟商家统计详情'
|
||||
ROW_FORMAT = Dynamic;
|
||||
|
||||
# 2024-04-18 新增云盟商家统计详情表 已执行
|
||||
INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`)
|
||||
VALUES ('1780785329575915521', 1123598815738675201, 'staticsSummary', '云盟商家统计汇总', 'menu', '/staticsSummary/staticsSummary', NULL, 1, 1, 0, 1, NULL, 0);
|
||||
INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`)
|
||||
VALUES ('1780785329575915522', '1780785329575915521', 'staticsSummary_add', '新增', 'add', '/staticsSummary/staticsSummary/add', 'plus', 1, 2, 1, 1, NULL, 0);
|
||||
INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`)
|
||||
VALUES ('1780785329575915523', '1780785329575915521', 'staticsSummary_edit', '修改', 'edit', '/staticsSummary/staticsSummary/edit', 'form', 2, 2, 2, 1, NULL, 0);
|
||||
INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`)
|
||||
VALUES ('1780785329575915524', '1780785329575915521', 'staticsSummary_delete', '删除', 'delete', '/api/blade-staticsSummary/staticsSummary/remove', 'delete', 3, 2, 3, 1, NULL, 0);
|
||||
INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`)
|
||||
VALUES ('1780785329575915525', '1780785329575915521', 'staticsSummary_view', '查看', 'view', '/staticsSummary/staticsSummary/view', 'file-text', 4, 2, 2, 1, NULL, 0);
|
||||
Reference in New Issue
Block a user