product:优化更新 SKU 的代码

This commit is contained in:
YunaiV
2022-12-15 21:31:52 +08:00
parent d453301455
commit 92dde0b48b
13 changed files with 179 additions and 110 deletions

View File

@@ -1,8 +1,7 @@
CREATE TABLE IF NOT EXISTS `product_sku` (
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键',
`spu_id` bigint NOT NULL COMMENT 'spu编号',
`tenant_id` bigint NOT NULL DEFAULT '0' COMMENT '租户编号',
`name` varchar DEFAULT NULL COMMENT '商品 SKU 名字',
`spu_name` varchar DEFAULT NULL COMMENT '商品 SPU 名字',
`properties` varchar DEFAULT NULL COMMENT '规格值数组-json格式 [{propertId: , valueId: }, {propertId: , valueId: }]',
`price` int NOT NULL DEFAULT '-1' COMMENT '销售价格单位',
`market_price` int DEFAULT NULL COMMENT '市场价',