1.新增商品出入库成本价计算

2.新增后台商品列表接口,支持共享库存sku展示
This commit is contained in:
2024-06-26 14:01:03 +08:00
parent 98439a14b8
commit 273c4c64a6
12 changed files with 109 additions and 18 deletions

View File

@@ -320,6 +320,10 @@ public class TbProduct implements Serializable {
@ApiModelProperty("库存数量")
private Integer stockNumber;
@Column(name = "`total_cost_price`")
@ApiModelProperty(value = "总成本价")
private BigDecimal totalCostPrice = BigDecimal.ZERO;
public void copy(TbProduct source){
BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));

View File

@@ -139,4 +139,8 @@ public class TbProductSku implements Serializable {
@Column(name = "`is_pause_sale`")
@ApiModelProperty(value = "是否暂停销售")
private Integer isPauseSale = 0;
@Column(name = "`total_cost_price`")
@ApiModelProperty(value = "总成本价")
private BigDecimal totalCostPrice = BigDecimal.ZERO;
}