mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 14:29:19 +08:00
refactor: 重构刷单费表名
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
-- ec_brush_order → ec_fake_orders_fee:刷单费表重命名
|
||||
|
||||
-- 1) 重命名表
|
||||
RENAME TABLE `ec_brush_order` TO `ec_fake_orders_fee`;
|
||||
|
||||
-- 2) 外键 / 索引名对齐新表(先删旧约束再重建)
|
||||
ALTER TABLE `ec_fake_orders_fee`
|
||||
DROP FOREIGN KEY `fk_ec_brush_order_company`,
|
||||
DROP FOREIGN KEY `fk_ec_brush_order_creator`,
|
||||
DROP FOREIGN KEY `fk_ec_brush_order_product`,
|
||||
DROP FOREIGN KEY `fk_ec_brush_order_product_sku`,
|
||||
DROP FOREIGN KEY `fk_ec_brush_order_shop`,
|
||||
DROP FOREIGN KEY `fk_ec_brush_order_updater`;
|
||||
|
||||
ALTER TABLE `ec_fake_orders_fee`
|
||||
DROP INDEX `fk_ec_brush_order_creator`,
|
||||
DROP INDEX `fk_ec_brush_order_updater`;
|
||||
|
||||
ALTER TABLE `ec_fake_orders_fee`
|
||||
ADD INDEX `fk_ec_fake_orders_fee_creator`(`create_by` ASC) USING BTREE,
|
||||
ADD INDEX `fk_ec_fake_orders_fee_updater`(`update_by` ASC) USING BTREE,
|
||||
ADD CONSTRAINT `fk_ec_fake_orders_fee_company` FOREIGN KEY (`company_id`) REFERENCES `org_company` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
||||
ADD CONSTRAINT `fk_ec_fake_orders_fee_creator` FOREIGN KEY (`create_by`) REFERENCES `sys_user` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
|
||||
ADD CONSTRAINT `fk_ec_fake_orders_fee_product` FOREIGN KEY (`product_id`) REFERENCES `ec_product` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
|
||||
ADD CONSTRAINT `fk_ec_fake_orders_fee_product_sku` FOREIGN KEY (`product_sku_id`) REFERENCES `ec_product_sku` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
|
||||
ADD CONSTRAINT `fk_ec_fake_orders_fee_shop` FOREIGN KEY (`shop_id`) REFERENCES `ec_shop` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
||||
ADD CONSTRAINT `fk_ec_fake_orders_fee_updater` FOREIGN KEY (`update_by`) REFERENCES `sys_user` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
||||
|
||||
ALTER TABLE `ec_fake_orders_fee` COMMENT = '电商-刷单费记录表';
|
||||
@@ -0,0 +1,27 @@
|
||||
-- 广告费 / 刷单菜单:对齐店铺子模块页面路径(组件目录为 views/ec)
|
||||
|
||||
-- 1) 广告费管理 → /ec/shop/ad-fee(不含导入页)
|
||||
UPDATE `sys_menu`
|
||||
SET `path` = 'shop/ad-fee',
|
||||
`component` = '/ec/shop/ad-fee/index',
|
||||
`update_time` = CURRENT_TIMESTAMP
|
||||
WHERE `name` IN ('广告费管理', '推广管理')
|
||||
OR `component` IN (
|
||||
'/ec/ad-fee/index',
|
||||
'/ecommerce/ad-fee/index',
|
||||
'/ecommerce/promotion-fee/index',
|
||||
'/ec/promotion-fee/index'
|
||||
);
|
||||
|
||||
-- 2) 刷单管理 → /ec/shop/fake-orders-fee
|
||||
UPDATE `sys_menu`
|
||||
SET `path` = 'shop/fake-orders-fee',
|
||||
`component` = '/ec/shop/fake-orders-fee/index',
|
||||
`update_time` = CURRENT_TIMESTAMP
|
||||
WHERE `name` = '刷单管理'
|
||||
OR `component` IN (
|
||||
'/ec/brush-order/index',
|
||||
'/ec/shop/brush-order/index',
|
||||
'/ecommerce/brush-order/index',
|
||||
'/ecommerce/shop/brush-order/index'
|
||||
);
|
||||
Reference in New Issue
Block a user