新增盘点接口

This commit is contained in:
2024-07-01 18:10:43 +08:00
parent 2af4c4d44e
commit 7bf66ab106
15 changed files with 518 additions and 3 deletions

View File

@@ -2,6 +2,7 @@ package cn.ysk.cashier.vo;
import lombok.Data;
import java.math.BigDecimal;
import java.util.List;
/**
@@ -23,6 +24,7 @@ public class StockV2Vo {
private Integer isPauseSale;
private Object number;
private Integer warnLine;
private BigDecimal salePrice;
public StockV2Vo(Integer proId, Integer skuId, String name, String unitName,String specSnap, Object number,Object stockNumber, Integer isDistribute) {
this.proId = proId;
@@ -78,6 +80,29 @@ public class StockV2Vo {
this.warnLine = warnLine;
}
public StockV2Vo(Integer id, Integer proId,String img,String name,String unitName, String type, String specSnap,
Object isStock, Object number, Integer isDistribute, Integer isPauseSale, boolean isPro, Integer warnLine, BigDecimal sellPrice) {
this.id = id.toString() + "-" + proId.toString();
if (isPro) {
this.id += proId;
} else {
this.id += id;
}
this.skuId = id;
this.proId = proId;
this.img = img;
this.name = name;
this.unitName = unitName;
setType(type);
this.specSnap = specSnap;
this.isStock = isStock;
this.stockNumber = number;
this.isDistribute = isDistribute;
this.isPauseSale = isPauseSale;
this.warnLine = warnLine;
this.salePrice = sellPrice;
}
public void setType(String type) {
switch (type) {
case "normal":