feat:每个货柜独立库存

This commit is contained in:
dzc committed 2025-04-18 14:35:03 +08:00
1 parent 4b2afa8800
commit 30e61bac2f
22 files changed
+293 -39

No files matched your search

+5
View File
@@ -444,6 +444,9 @@ CREATE TABLE hard_spu_join
cabinet_no varchar(32) DEFAULT NULL COMMENT '货柜编号',
spu_id bigint DEFAULT NULL COMMENT '商品id',
hard_door_number int DEFAULT NULL COMMENT '商品放置层数',
version bigint DEFAULT 0 COMMENT '乐观锁',
sales_count bigint DEFAULT 0 COMMENT '销量',
repertory_count bigint NOT NULL DEFAULT 0 COMMENT '库存',
create_by varchar(64) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '创建人',
create_time datetime DEFAULT NULL COMMENT '创建时间',
update_by varchar(64) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '修改人',
@@ -481,6 +484,8 @@ CREATE TABLE hard_spu_repertory
(
id bigint NOT NULL AUTO_INCREMENT COMMENT '编号',
user_id bigint NOT NULL COMMENT '用户id',
hard_door_id bigint NOT NULL COMMENT '智能柜编号',
cabinet_no int NOT NULL COMMENT '货柜编号(1,2)',
spu_id bigint NOT NULL COMMENT '商品id',
before_count int NOT NULL COMMENT '更新前的库存数量',
count int DEFAULT 0 COMMENT '更新库存数量',