新增盘点接口

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

@@ -0,0 +1,93 @@
package cn.ysk.cashier.pojo.product;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 库存盘点表
* @TableName tb_product_stocktakin
*/
@Entity
@Table(name="tb_product_stocktakin")
@Data
@EqualsAndHashCode
public class TbProductStocktakin implements Serializable {
/**
*
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
/**
* 店铺id
*/
@Column(name = "product_id")
private Integer productId;
/**
* skuId
*/
@Column(name = "sku_id")
private Integer skuId;
/**
* 商品名
*/
private String name;
/**
* 商品封面
*/
private String coverImg;
/**
* 库存数量
*/
private Integer stock;
/**
* 盘点数量
*/
@Column(name = "inventory_stock")
private Integer inventoryStock;
/**
* 盈亏金额
*/
@Column(name = "phase_price")
private BigDecimal phasePrice;
/**
* 单价
*/
private BigDecimal price;
/**
* 盈亏数量
*/
@Column(name = "phase_num")
private Integer phaseNum;
/**
* 创建时间
*/
@Column(name = "create_time")
private Date createTime;
/**
* 备注
*/
private String note;
private Integer shopId;
private static final long serialVersionUID = 1L;
}