商品库存数据统计
商品库存查询变动记录 耗材库存数据统计 商品列表排序 耗材列表排序 商品报损 耗材报损
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package cn.ysk.cashier.dto.product;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.NonNull;
|
||||
|
||||
@Data
|
||||
public class TbProductFrmLossDto {
|
||||
@NonNull
|
||||
private String shopId;
|
||||
@NonNull
|
||||
private String productId;
|
||||
@NonNull
|
||||
private String coverImg;
|
||||
@NonNull
|
||||
private Double stockNumber;
|
||||
private String remark;
|
||||
private Integer subType = -1;
|
||||
private String type = "报损";
|
||||
|
||||
}
|
||||
@@ -23,8 +23,7 @@ import java.math.BigDecimal;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import static cn.ysk.cashier.annotation.Query.Type.IN;
|
||||
import static cn.ysk.cashier.annotation.Query.Type.INNER_LIKE;
|
||||
import static cn.ysk.cashier.annotation.Query.Type.*;
|
||||
|
||||
/**
|
||||
* @website https://eladmin.vip
|
||||
@@ -59,9 +58,12 @@ public class TbProductQueryV2Criteria {
|
||||
@Query(type = IN)
|
||||
private List<String> typeEnum = Arrays.asList("normal","sku");
|
||||
|
||||
private Integer page;
|
||||
@Query(type = BETWEEN)
|
||||
private List<Long> createdAt;
|
||||
|
||||
private Integer size;
|
||||
// private Integer page;
|
||||
//
|
||||
// private Integer size;
|
||||
|
||||
public void setType(String type) {
|
||||
if(StringUtils.isNotBlank(type)){
|
||||
|
||||
@@ -11,8 +11,8 @@ import java.math.BigDecimal;
|
||||
@Entity
|
||||
public class TbProductStockListDto {
|
||||
@Id
|
||||
private String productId;
|
||||
private String productName;
|
||||
private String id;
|
||||
private String name;
|
||||
// private String specSnap;
|
||||
@Transient
|
||||
private BigDecimal countNumber;
|
||||
@@ -24,4 +24,7 @@ public class TbProductStockListDto {
|
||||
private BigDecimal lossNumber;
|
||||
private BigDecimal refundNumber;
|
||||
|
||||
private BigDecimal stockInNumber;
|
||||
private BigDecimal stockOutNumber;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user