refactor: 移除商品与规格的 linkName 字段

- 移除 ec_product.link_name 与 ec_product_spec.link_name 列(迁移脚本 V20260507 已执行)
- 同步移除后端 DTO/PO/VO/ImportHelper 中对 linkName 的引用
This commit is contained in:
小蟑螂
2026-05-07 14:53:56 +08:00
parent 43ea5ce352
commit b695581377
16 changed files with 7 additions and 82 deletions
-2
View File
@@ -230,7 +230,6 @@ CREATE TABLE `ec_product` (
`company_id` bigint UNSIGNED NOT NULL COMMENT '公司ID',
`category_id` bigint UNSIGNED NULL DEFAULT NULL COMMENT '类目ID',
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '商品名称',
`link_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '链接商品名称',
`product_code` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '商品编码',
`main_image_id` bigint UNSIGNED NULL DEFAULT NULL COMMENT '主图图片ID',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
@@ -260,7 +259,6 @@ CREATE TABLE `ec_product_spec` (
`company_id` bigint UNSIGNED NOT NULL COMMENT '公司ID',
`product_id` bigint UNSIGNED NOT NULL COMMENT '商品ID',
`name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '规格名称',
`link_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '链接规格名称',
`spec_code` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '规格编码',
`product_cost` decimal(10, 2) NOT NULL DEFAULT 0.00 COMMENT '商品成本',
`shipping_cost` decimal(10, 2) NOT NULL DEFAULT 0.00 COMMENT '运费成本',