库存管理 库存记录

This commit is contained in:
2024-06-22 10:38:51 +08:00
parent 2a52961024
commit 1675e5d45b
9 changed files with 74 additions and 16 deletions

View File

@@ -8,6 +8,7 @@ public class StockQueryDto {
private String name;
private String shopId;
private Double num;
private Integer isStock;
public void setName(String name) {
@@ -27,4 +28,10 @@ public class StockQueryDto {
this.isStock = isStock;
}
}
public void setNum(Double num) {
if (num!=null) {
this.num = num;
}
}
}

View File

@@ -101,4 +101,21 @@ stockpile存酒入库
private Long createdAt;
private Long updatedAt;
public void setTypes() {
switch (this.type) {
case "purchase":
this.type = "其他入库";
break;
case "other-out":
this.type = "其他出库";
break;
case "reject":
this.type = "供应商退货";
break;
case "purveyor":
this.type = "供应商入库";
break;
}
}
}

View File

@@ -18,6 +18,7 @@ package cn.ysk.cashier.dto.product;
import lombok.Data;
import java.util.List;
import cn.ysk.cashier.annotation.Query;
import org.apache.commons.lang3.StringUtils;
/**
* @website https://eladmin.vip
@@ -38,6 +39,9 @@ public class TbProductStockDetailQueryCriteria{
/** 精确 */
@Query
private String productName;
@Query
private String type;
/** BETWEEN */
@Query(type = Query.Type.BETWEEN)
private List<Long> createdAt;
@@ -51,4 +55,10 @@ public class TbProductStockDetailQueryCriteria{
private Integer size;
private String sort = "id,desc";
public void setType(String type) {
if(StringUtils.isNotBlank(type)){
this.type = type;
}
}
}