From a8e4132c3e2e9c3b3fcb0360901b35571b6464ea Mon Sep 17 00:00:00 2001
From: hsy <1029150275@qq.com>
Date: 星期五, 28 八月 2026 10:13:01 +0800
Subject: [PATCH] feat: 综合业务模块功能补充与实体拓展

---
 src/main/java/com/ruoyi/sales/pojo/SalesLedger.java |  107 ++++++++++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 101 insertions(+), 6 deletions(-)

diff --git a/src/main/java/com/ruoyi/sales/pojo/SalesLedger.java b/src/main/java/com/ruoyi/sales/pojo/SalesLedger.java
index bb4f237..8472ca4 100644
--- a/src/main/java/com/ruoyi/sales/pojo/SalesLedger.java
+++ b/src/main/java/com/ruoyi/sales/pojo/SalesLedger.java
@@ -1,11 +1,16 @@
 package com.ruoyi.sales.pojo;
 
-import java.util.Date;
-
 import com.baomidou.mybatisplus.annotation.*;
 import com.fasterxml.jackson.annotation.JsonFormat;
 import com.ruoyi.framework.aspectj.lang.annotation.Excel;
+import io.swagger.v3.oas.annotations.media.Schema;
 import lombok.Data;
+import org.springframework.format.annotation.DateTimeFormat;
+
+import java.math.BigDecimal;
+import java.time.LocalDate;
+import java.util.Date;
+import java.util.List;
 
 /**
  * 閿�鍞彴璐﹀璞� sales_ledger
@@ -33,8 +38,9 @@
     /**
      * 瀹㈡埛鍚堝悓鍙�
      */
-    @Excel(name = "瀹㈡埛鍚堝悓鍙�")
+    @Excel(name = "瀹㈡埛鍚堝悓鍙�", type = Excel.Type.IMPORT)
     private String customerContractNo;
+
 
     /**
      * 椤圭洰鍚嶇О
@@ -45,8 +51,9 @@
     /**
      * 褰曞叆鏃ユ湡
      */
-    @JsonFormat(pattern = "yyyy-MM-dd")
+    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
     @Excel(name = "褰曞叆鏃ユ湡", width = 30, dateFormat = "yyyy-MM-dd")
+    @DateTimeFormat(pattern = "yyyy-MM-dd")
     private Date entryDate;
 
     /**
@@ -69,8 +76,12 @@
     /**
      * 褰曞叆浜�
      */
-    @Excel(name = "褰曞叆浜�")
     private String entryPerson;
+
+    @TableField(exist = false)
+    @Schema(description = "褰曞叆浜�")
+    @Excel(name = "褰曞叆浜�")
+    private String entryPersonName;
 
     /**
      * 澶囨敞
@@ -81,11 +92,95 @@
     /**
      * 闄勪欢鏉愭枡锛屽瓨鍌ㄦ枃浠跺悕绛夌浉鍏充俊鎭�
      */
-    @Excel(name = "闄勪欢鏉愭枡锛屽瓨鍌ㄦ枃浠跺悕绛夌浉鍏充俊鎭�")
     private String attachmentMaterials;
 
     @TableField(fill = FieldFill.INSERT)
     private Long tenantId;
 
+
+    /**
+     * 鍚堝悓閲戦锛堜骇鍝佸惈绋庢�讳环锛�
+     */
+    @Excel(name = "鍚堝悓閲戦")
+    private BigDecimal contractAmount;
+
+    @Schema(description = "绛捐鏃ユ湡")
+    private LocalDate executionDate;
+
+    @Schema(description = "浠樻鏂瑰紡")
+    private String paymentMethod;
+
+    @Schema(description = "瀹為檯鍚堝悓閲戦")
+    private BigDecimal netContractAmount;
+
+    @TableField(exist = false)
+    @Schema(description = "鐢熶骇鐘舵��")
+    private String productionStatus = "鏈紑濮�";
+
+    //浜よ揣鏃ユ湡
+    @Schema(description = "浜よ揣鏃ユ湡")
+    @TableField(value = "delivery_date")
+    private LocalDate deliveryDate;
+
+    @TableField(exist = false)
+    @Schema(description = "浜よ揣澶╂暟宸�")
+    private Integer deliveryDaysDiff;
+
+    @TableField(exist = false)
+    //鏄惁鍙戣揣(鍙拌处椤甸潰棰滆壊鎺у埗)
+    private Boolean isFh;
+
+    @TableField(exist = false)
+    //鏄惁鍙紪杈�
+    private Boolean isEdit;
+    @Schema(description = "鍒涘缓鐢ㄦ埛")
+    @TableField(fill = FieldFill.INSERT)
+    private Integer createUser;
+
+    @TableField(fill = FieldFill.INSERT)
+    private Long deptId;
+
+    @Schema(description = "鏄惁鏈夌敓浜ц褰�")
+    @TableField(exist = false)
+    private Boolean hasProductionRecord;
+
+    @Schema(description = "椤圭洰ID")
+    private Long projectId;
+
+    @Schema(description = "骞翠唤")
+    @Excel(name = "骞翠唤")
+    private Integer year;
+
+    @Schema(description = "绛惧崟鍗曚綅ID")
+    private Long signingUnitId;
+
+    @Schema(description = "鍔炰簨澶処D")
+    private Long officeId;
+
+    @Schema(description = "缁勮礋璐d汉ID")
+    private Long groupLeaderId;
+
+    @Schema(description = "鏄惁寮�鍙戠エ(1鏄� 0鍚�)")
+    private Integer isInvoice;
+
+    @Schema(description = "涓爣浠�")
+    @Excel(name = "涓爣浠�")
+    private BigDecimal bidPrice;
+
+    @Schema(description = "鏄惁涓爣(1鏄� 0鍚�)")
+    private Integer isBid;
+
+    @Schema(description = "鏈腑鏍囧師鍥�")
+    private String unbidReason;
+
+    @Schema(description = "鍚堝悓鍘熶欢绾﹀畾鍥炰紶鏃ユ湡")
+    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
+    @Excel(name = "鍚堝悓鍘熶欢绾﹀畾鍥炰紶鏃ユ湡", width = 30, dateFormat = "yyyy-MM-dd")
+    @DateTimeFormat(pattern = "yyyy-MM-dd")
+    private LocalDate contractOriginalReturnDate;
+
+    @TableField(exist = false)
+    @Schema(description = "鍏宠仈鍚堝悓ID鍒楄〃")
+    private List<Long> associatedContractIds;
 }
 

--
Gitblit v1.9.3