在线商城
This commit is contained in:
1 parent
d5630ecfb1
commit
09f65b264a
7 files changed
+78
-6
No files matched your search
+5
@@ -2,6 +2,8 @@ package com.bsd.pjcloud.supermarket.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import com.bsd.pjcloud.common.core.util.MoneyDeserializer;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.bsd.pjcloud.common.core.util.TenantTable;
|
||||
import lombok.Data;
|
||||
@@ -87,11 +89,13 @@ public class ShopSkuEntity extends Model<ShopSkuEntity> {
|
||||
* 进价/单位分
|
||||
*/
|
||||
@Schema(description="进价/单位分")
|
||||
@JsonDeserialize(using = MoneyDeserializer.class) // 元 -> 分
|
||||
private Integer purchasePrice;
|
||||
/**
|
||||
* 零售价/单位分
|
||||
*/
|
||||
@Schema(description="零售价/单位分")
|
||||
@JsonDeserialize(using = MoneyDeserializer.class) // 元 -> 分
|
||||
private Integer retailPrice;
|
||||
/**
|
||||
* spuID
|
||||
@@ -102,6 +106,7 @@ public class ShopSkuEntity extends Model<ShopSkuEntity> {
|
||||
* 促销价
|
||||
*/
|
||||
@Schema(description="促销价")
|
||||
@JsonDeserialize(using = MoneyDeserializer.class) // 元 -> 分
|
||||
private Integer promotionPrice;
|
||||
/**
|
||||
* 库存
|
||||
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
package com.bsd.pjcloud.supermarket.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
@Data
|
||||
public class ShopSpuPageVo {
|
||||
@Schema(description = "商品ID")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "商品名称")
|
||||
private String productName;
|
||||
|
||||
@Schema(description = "最低价")
|
||||
private BigDecimal minPrice;
|
||||
|
||||
@Schema(description = "总销量")
|
||||
private Integer totalSales;
|
||||
|
||||
// 可扩展其他字段
|
||||
}
|
||||
+11
@@ -37,4 +37,15 @@ public class ShopSpuListAppVo {
|
||||
@Schema(description="商品分类编号")
|
||||
private Long categoryId;
|
||||
|
||||
/**
|
||||
* 最低价(元)
|
||||
*/
|
||||
@Schema(description="最低价(元)")
|
||||
private java.math.BigDecimal minPrice;
|
||||
|
||||
/**
|
||||
* 总库存
|
||||
*/
|
||||
@Schema(description="总库存")
|
||||
private Double totalStock;
|
||||
}
|
||||
Reference in new issue
Block a user