From ff5614116fe3f9a8d515ba7feb3c2e408d6af16a Mon Sep 17 00:00:00 2001
From: gongchunyi <deslre0381@gmail.com>
Date: 星期六, 28 三月 2026 10:50:56 +0800
Subject: [PATCH] fix: 销售台账产品信息数据返回缺失

---
 src/main/java/com/ruoyi/sales/pojo/SalesLedgerProduct.java |  187 +++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 174 insertions(+), 13 deletions(-)

diff --git a/src/main/java/com/ruoyi/sales/pojo/SalesLedgerProduct.java b/src/main/java/com/ruoyi/sales/pojo/SalesLedgerProduct.java
index 4c11359..46b3ad3 100644
--- a/src/main/java/com/ruoyi/sales/pojo/SalesLedgerProduct.java
+++ b/src/main/java/com/ruoyi/sales/pojo/SalesLedgerProduct.java
@@ -4,11 +4,16 @@
 import com.baomidou.mybatisplus.annotation.TableField;
 import com.baomidou.mybatisplus.annotation.TableId;
 import com.baomidou.mybatisplus.annotation.TableName;
+import com.fasterxml.jackson.annotation.JsonFormat;
 import com.ruoyi.framework.aspectj.lang.annotation.Excel;
 import io.swagger.annotations.ApiModelProperty;
 import lombok.Data;
 
+import java.io.Serializable;
 import java.math.BigDecimal;
+import java.time.LocalDateTime;
+import java.util.Date;
+import java.util.List;
 
 /**
  * 浜у搧淇℃伅瀵硅薄 sales_ledger_product
@@ -18,7 +23,7 @@
  */
 @TableName("sales_ledger_product")
 @Data
-public class SalesLedgerProduct {
+public class SalesLedgerProduct implements Serializable {
     private static final long serialVersionUID = 1L;
 
     /**
@@ -32,6 +37,11 @@
      */
     @Excel(name = "鍏宠仈閿�鍞彴璐︿富琛ㄤ富閿�")
     private Long salesLedgerId;
+
+    /**
+     * 棰勮鏁伴噺
+     */
+    private BigDecimal warnNum;
 
     /**
      * 浜у搧澶х被
@@ -52,11 +62,18 @@
     private String unit;
 
     /**
+     * 鐢熶骇鐐掓満
+     */
+    @Excel(name = "鐢熶骇鐐掓満")
+    private String speculativeTradingName;
+
+    /**
      * 鏁伴噺
      */
     @Excel(name = "鏁伴噺")
     private BigDecimal quantity;
-
+    @Excel(name = "鏈�浣庡簱瀛樻暟閲�")
+    private BigDecimal minStock;
     /**
      * 绋庣巼
      */
@@ -95,45 +112,45 @@
     /**
      * 鏈鏉ョエ鏁�
      */
-    private Long ticketsNum;
+    private BigDecimal ticketsNum = BigDecimal.ZERO;
 
     /**
      * 鏈鏉ョエ閲戦(鍏�)
      */
-    private BigDecimal ticketsAmount;
+    private BigDecimal ticketsAmount = BigDecimal.ZERO;
 
     /**
      * 鏈潵绁ㄦ暟
      */
-    private Long futureTickets;
+    private BigDecimal futureTickets = BigDecimal.ZERO;
 
     /**
      * 鏈潵绁ㄩ噾棰�(鍏�)
      */
-    private BigDecimal futureTicketsAmount;
+    private BigDecimal futureTicketsAmount = BigDecimal.ZERO;
 
     @ApiModelProperty(value = "寮�绁ㄦ暟")
-    private Integer invoiceNum;
+    private BigDecimal invoiceNum = BigDecimal.ZERO;
 
     @ApiModelProperty(value = "鏈紑绁ㄦ暟")
-    private Integer noInvoiceNum;
+    private BigDecimal noInvoiceNum = BigDecimal.ZERO;
 
     @ApiModelProperty(value = "寮�绁ㄩ噾棰�")
-    private BigDecimal invoiceAmount;
+    private BigDecimal invoiceAmount = BigDecimal.ZERO;
 
     @ApiModelProperty(value = "鏈紑绁ㄩ噾棰�")
-    private BigDecimal noInvoiceAmount;
+    private BigDecimal noInvoiceAmount = BigDecimal.ZERO;
 
     @ApiModelProperty(value = "鏈寮�绁ㄦ暟")
     @TableField(exist = false)
-    private Integer currentInvoiceNum;
+    private BigDecimal currentInvoiceNum;
 
     @TableField(exist = false)
     @ApiModelProperty(value = "鏈寮�绁ㄩ噾棰�")
     private BigDecimal currentInvoiceAmount;
 
     /**
-     *  浜у搧id
+     * 浜у搧id
      */
     private Long productId;
 
@@ -144,5 +161,149 @@
 
     @ApiModelProperty(value = "鍒濆鏈紑绁ㄦ暟")
     @TableField(exist = false)
-    private Integer originalNoInvoiceNum;
+    private BigDecimal originalNoInvoiceNum;
+
+    @ApiModelProperty(value = "涓存椂鏈紑绁ㄦ暟")
+    @TableField(exist = false)
+    private BigDecimal tempNoInvoiceNum;
+
+    @ApiModelProperty(value = "涓存椂鏈紑绁ㄩ噾棰�")
+    @TableField(exist = false)
+    private BigDecimal tempnoInvoiceAmount;
+
+    @ApiModelProperty(value = "涓存椂鏈潵绁ㄦ暟")
+    @TableField(exist = false)
+    private BigDecimal tempFutureTickets;
+
+    @ApiModelProperty(value = "涓存椂鏈潵绁ㄩ噾棰�")
+    @TableField(exist = false)
+    private BigDecimal tempFutureTicketsAmount;
+
+    @ApiModelProperty("鐧昏浜�")
+    private String register;
+
+    @ApiModelProperty("鐧昏鏃ユ湡")
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    @Excel(name = "鐧昏鏃ユ湡", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
+    private LocalDateTime registerDate;
+    /**
+     * 鍙戣揣杞︾墝鍙�
+     */
+    @Excel(name = "鍙戣揣杞︾墝鍙�")
+    @TableField(exist = false)
+    private String shippingCarNumber;
+
+    @ApiModelProperty("蹇�掑叕鍙�")
+    @TableField(exist = false)
+    private String expressCompany;
+
+    @ApiModelProperty("蹇�掑崟鍙�")
+    @TableField(exist = false)
+    private String expressNumber;
+
+    /**
+     * 鍙戣揣鏃ユ湡
+     */
+    @Excel(name = "鍙戣揣鏃ユ湡", width = 30, dateFormat = "yyyy-MM-dd")
+    @TableField(exist = false)
+    @JsonFormat(pattern = "yyyy-MM-dd")
+    private Date shippingDate;
+
+    @TableField(exist = false)
+    @ApiModelProperty(value = "鍙戣揣鐘舵��")
+    private String shippingStatus = "寰呭彂璐�";
+    /**
+     * 浜у搧鐘舵��
+     */
+//    @TableField(exist = false)
+    @ApiModelProperty(value = "浜у搧鐘舵�侊細1-鍏呰冻")
+    private Integer approveStatus;
+
+    @ApiModelProperty(value = "寰呭洖娆炬�婚噾棰�")
+    private BigDecimal pendingInvoiceTotal;
+
+    @ApiModelProperty(value = "鍥炴鎬婚噾棰�")
+    private BigDecimal invoiceTotal = BigDecimal.ZERO;
+
+    @ApiModelProperty(value = "寰呬粯娆炬�婚噾棰�")
+    private BigDecimal pendingTicketsTotal;
+
+    @ApiModelProperty(value = "浠樻鎬婚噾棰�")
+    private BigDecimal ticketsTotal = BigDecimal.ZERO;
+
+    @ApiModelProperty(value = "鏄惁璐ㄦ")
+    private Boolean isChecked;
+
+    @TableField(exist = false)
+    @ApiModelProperty("閲嶇")
+    private BigDecimal thickness;
+
+    @ApiModelProperty("瀹�")
+    private BigDecimal width;
+
+    @ApiModelProperty("楂�")
+    private BigDecimal height;
+
+    @ApiModelProperty("鍔犲伐瑕佹眰")
+    private String processRequirement;
+
+    @ApiModelProperty("澶囨敞")
+    private String remark;
+
+    /**
+     * 瀹為檯鍗曠墖闈㈢Н(銕�)
+     */
+    @ApiModelProperty("瀹為檯鍗曠墖闈㈢Н(銕�)")
+    private BigDecimal actualPieceArea;
+
+    /**
+     * 瀹為檯鎬婚潰绉�(銕�)
+     */
+    @ApiModelProperty("瀹為檯鎬婚潰绉�(銕�)")
+    private BigDecimal actualTotalArea;
+
+    /**
+     * 缁撶畻鍗曠墖闈㈢Н(銕�)
+     */
+    @ApiModelProperty("缁撶畻鍗曠墖闈㈢Н(銕�)")
+    private BigDecimal settlePieceArea;
+
+    /**
+     * 缁撶畻鎬婚潰绉�(銕�)
+     */
+    @ApiModelProperty("缁撶畻鎬婚潰绉�(銕�)")
+    private BigDecimal settleTotalArea;
+
+    /**
+     * 鍛ㄩ暱
+     */
+    @ApiModelProperty("鍛ㄩ暱(cm)")
+    private BigDecimal perimeter;
+
+    /**
+     * 閲嶇
+     */
+    @ApiModelProperty("閲嶇")
+    private BigDecimal heavyBox;
+
+    /**
+     * 妤煎眰缂栧彿
+     */
+    @ApiModelProperty("妤煎眰缂栧彿")
+    private String floorCode;
+
+    @TableField(exist = false)
+    @ApiModelProperty("閿�鍞骇鍝侀澶栧姞宸�")
+    private List<SalesLedgerProductProcess> salesProductProcessList;
+
+    @TableField(exist = false)
+    private Integer hasSufficientStock;
+
+    // 閫�璐ф暟閲�
+    @TableField(exist = false)
+    private BigDecimal returnQuality;
+
+    // 鍙敤鏁伴噺  quantity - returnQuality
+    @TableField(exist = false)
+    private BigDecimal availableQuality;
 }

--
Gitblit v1.9.3