库存管理 库存记录
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user