From 5c1a58d067512df6099f9cc95f577c9991128163 Mon Sep 17 00:00:00 2001 From: lishenao <3065849776@qq.com> Date: 星期一, 30 六月 2025 15:16:09 +0800 Subject: [PATCH] 入库管理,出库管理,库存管理后端接口 --- src/main/java/com/ruoyi/inventory/pojo/StockIn.java | 49 ++++++++++++++++++++++--------------------------- 1 files changed, 22 insertions(+), 27 deletions(-) diff --git a/src/main/java/com/ruoyi/inventory/pojo/StockIn.java b/src/main/java/com/ruoyi/inventory/pojo/StockIn.java index d28cd2e..886682d 100644 --- a/src/main/java/com/ruoyi/inventory/pojo/StockIn.java +++ b/src/main/java/com/ruoyi/inventory/pojo/StockIn.java @@ -1,31 +1,36 @@ package com.ruoyi.inventory.pojo; - import java.io.Serializable; import java.math.BigDecimal; import java.util.Date; -import java.util.List; - +import com.baomidou.mybatisplus.annotation.*; +import com.fasterxml.jackson.annotation.JsonFormat; +import io.swagger.annotations.ApiModelProperty; import lombok.Data; + +import javax.validation.constraints.NotNull; /** * * @TableName stock_in */ @Data -public class StockIn implements Serializable { +@TableName("stock_in") +public class StockIn{ /** * 鍏ュ簱璁板綍ID */ + @TableId(type = IdType.AUTO) private Integer id; /** * 浜у搧id */ - private Integer productId; + private Long productId; /** * 鍏ュ簱鏃堕棿 */ + @JsonFormat(pattern = "yyyy-MM-dd") private Date inboundTime; /** @@ -34,40 +39,30 @@ private String inboundBatch; /** - * 渚涘簲鍟嗗悕绉� + * 渚涘簲鍟唅d */ - private String supplierName; - + private Long supplierId; /** * 鍏ュ簱鏁伴噺 */ private Integer inboundQuantity; - /** - * 鍚◣鍗曚环 - */ - private BigDecimal taxInclusivePrice; - /** - * 鍚◣鎬讳环 - */ - private BigDecimal taxInclusiveTotal; - - /** - * 绋庣巼 - */ - private BigDecimal taxRate; - - /** - * 涓嶅惈绋庢�讳环 - */ - private BigDecimal taxExclusiveTotal; /** * 鍏ュ簱浜� */ private String inboundPerson; +// tenant_id + /** + * 绉熸埛ID + */ + @ApiModelProperty(value = "绉熸埛ID") + @TableField(fill = FieldFill.INSERT) + private Long tenantId; + private static final long serialVersionUID = 1L; - private List<StockProduct> stockProducts; +// private List<StockProduct> stockProducts; + } \ No newline at end of file -- Gitblit v1.9.3