feat:每个货柜独立库存
This commit is contained in:
1 parent
4b2afa8800
commit
30e61bac2f
22 files changed
+293
-39
No files matched your search
+8
@@ -0,0 +1,8 @@
|
||||
package com.bsd.pjcloud.hard.api.dto.manager;
|
||||
|
||||
import com.bsd.pjcloud.hard.api.entity.manager.HardDoorCabinetEntity;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class HardDoorCabinetDto extends HardDoorCabinetEntity {
|
||||
}
|
||||
+2
@@ -13,4 +13,6 @@ public class HardSpuRepertoryDto extends HardSpuRepertoryEntity {
|
||||
|
||||
private List<Long> userIds;
|
||||
|
||||
private Long cabinetId;
|
||||
|
||||
}
|
||||
+19
@@ -51,6 +51,25 @@ public class HardSpuJoinEntity extends Model<HardSpuJoinEntity> {
|
||||
@Schema(description = "放置层数")
|
||||
private Integer hardDoorNumber;
|
||||
|
||||
/**
|
||||
* 乐观锁
|
||||
*/
|
||||
@Version
|
||||
private Integer version;
|
||||
|
||||
/**
|
||||
* 销量
|
||||
*/
|
||||
@Schema(description = "销量")
|
||||
private Integer salesCount;
|
||||
|
||||
/**
|
||||
* 库存
|
||||
*/
|
||||
@Schema(description = "库存")
|
||||
private Integer repertoryCount;
|
||||
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
|
||||
+13
@@ -36,6 +36,19 @@ public class HardSpuRepertoryEntity extends Model<HardSpuRepertoryEntity> {
|
||||
@Schema(description = "用户id")
|
||||
private Long userId;
|
||||
|
||||
/**
|
||||
* 硬件柜子id
|
||||
*/
|
||||
@Schema(description = "硬件柜子id")
|
||||
private Long hardDoorId;
|
||||
|
||||
/**
|
||||
* 柜门编号
|
||||
*/
|
||||
@Schema(description = "柜门编号")
|
||||
private Integer cabinetNo;
|
||||
|
||||
|
||||
/**
|
||||
* 商品id
|
||||
*/
|
||||
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
package com.bsd.pjcloud.hard.api.vo.manager;
|
||||
|
||||
import com.bsd.pjcloud.hard.api.entity.manager.HardDoorCabinetEntity;
|
||||
import com.bsd.pjcloud.hard.api.vo.base.BaseHardInterface;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class HardDoorCabinetVo extends HardDoorCabinetEntity implements BaseHardInterface {
|
||||
|
||||
/**
|
||||
* 设备相关
|
||||
*/
|
||||
private Long hardId;
|
||||
|
||||
private String hardName;
|
||||
|
||||
private String hardType;
|
||||
|
||||
private String deviceCode;
|
||||
|
||||
}
|
||||
+12
-1
@@ -2,11 +2,12 @@ package com.bsd.pjcloud.hard.api.vo.spu;
|
||||
|
||||
import com.bsd.pjcloud.admin.api.vo.base.BaseUserInterface;
|
||||
import com.bsd.pjcloud.hard.api.entity.spu.HardSpuRepertoryEntity;
|
||||
import com.bsd.pjcloud.hard.api.vo.base.BaseHardInterface;
|
||||
import com.bsd.pjcloud.wallet.api.vo.base.BaseMchInterface;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class HardSpuRepertoryVo extends HardSpuRepertoryEntity implements BaseMchInterface, BaseUserInterface {
|
||||
public class HardSpuRepertoryVo extends HardSpuRepertoryEntity implements BaseMchInterface, BaseUserInterface, BaseHardInterface {
|
||||
|
||||
/**
|
||||
* 商品相关
|
||||
@@ -42,5 +43,15 @@ public class HardSpuRepertoryVo extends HardSpuRepertoryEntity implements BaseMc
|
||||
|
||||
private String userAvatar;
|
||||
|
||||
/**
|
||||
* 设备相关
|
||||
*/
|
||||
private Long hardId;
|
||||
|
||||
private String hardName;
|
||||
|
||||
private String hardType;
|
||||
|
||||
private String deviceCode;
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user