From 96bea93e9591de5bd6e632b7bf9bb1e920f371ed Mon Sep 17 00:00:00 2001
From: LSH
Date: 星期五, 10 十一月 2023 15:04:39 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/crm/manager/entity/Contract.java |   74 ++++++++++++++++++++++++++++++++++---
 1 files changed, 68 insertions(+), 6 deletions(-)

diff --git a/src/main/java/com/zy/crm/manager/entity/Contract.java b/src/main/java/com/zy/crm/manager/entity/Contract.java
index 713659f..da2e995 100644
--- a/src/main/java/com/zy/crm/manager/entity/Contract.java
+++ b/src/main/java/com/zy/crm/manager/entity/Contract.java
@@ -93,8 +93,8 @@
      * 鍒涘缓浜哄憳
      */
     @ApiModelProperty(value= "鍒涘缓浜哄憳")
-    @TableField("create_by")
-    private Long createBy;
+    @TableField("user_id")
+    private Long userId;
 
     /**
      * 鏇存柊浜哄憳
@@ -172,9 +172,48 @@
     @ApiModelProperty(value= "娉曚汉鎴栨巿鏉冧唬琛�")
     private String boss;
 
+    /**
+     * 鍚堝悓缂栧彿
+     */
+    @ApiModelProperty(value= "鍚堝悓缂栧彿")
+    private String serial;
+
+    /**
+     * 閮ㄩ棬ID
+     */
+    @ApiModelProperty(value= "鍒涘缓浜哄憳")
+    @TableField("dept_id")
+    private Long deptId;
+
+    /**
+     * hostId
+     */
+    @ApiModelProperty(value= "hostId")
+    @TableField("host_id")
+    private Long hostId;
+
+    /**
+     * 杩涘害
+     */
+    @ApiModelProperty(value= "杩涘害")
+    private Integer settle;
+
+    /**
+     * 娴佺▼杩涘害
+     */
+    @ApiModelProperty(value= "娴佺▼杩涘害")
+    @TableField("settle_msg")
+    private String settleMsg;
+
+    /**
+     * 鑺傜偣璐熻矗浜�
+     */
+    @ApiModelProperty(value= "鑺傜偣璐熻矗浜�")
+    private Long director;
+
     public Contract() {}
 
-    public Contract(Long id, String customer, String address, String company, String companyAddress, String taxNum, String bank, String bankNum, Date createTime, Date updateTime, Long createBy, Long updateBy, String filepath, String city, String shippingAddress, String shippingName, String shippingPhone, Double price, String email, String name, Integer status, String memo, String boss) {
+    public Contract(Long id, String customer, String address, String company, String companyAddress, String taxNum, String bank, String bankNum, Date createTime, Date updateTime, Long userId, Long updateBy, String filepath, String city, String shippingAddress, String shippingName, String shippingPhone, Double price, String email, String name, Integer status, String memo, String boss, String serial, Long deptId, Long hostId,Integer settle,String settleMsg) {
         this.id = id;
         this.customer = customer;
         this.address = address;
@@ -185,7 +224,7 @@
         this.bankNum = bankNum;
         this.createTime = createTime;
         this.updateTime = updateTime;
-        this.createBy = createBy;
+        this.userId = userId;
         this.updateBy = updateBy;
         this.filepath = filepath;
         this.city = city;
@@ -198,6 +237,11 @@
         this.status = status;
         this.memo = memo;
         this.boss = boss;
+        this.serial = serial;
+        this.deptId = deptId;
+        this.hostId = hostId;
+        this.settle = settle;
+        this.settleMsg = settleMsg;
     }
 
     //    Contract contract = new Contract(
@@ -222,6 +266,24 @@
 //            null    // 鐢靛瓙閭
 //    );
 
+    public String getSettle$(){
+        if (null == this.settle){ return null; }
+        switch (this.settle){
+            case 0:
+                return "绛夊緟鎻愪氦";
+            case 1:
+                return "绛夊緟缁勯暱瀹℃壒";
+            case 2:
+                return "绛夊緟鎬昏鍔炲鎵�";
+            case 3:
+                return "绛夊緟纭";
+            case 4:
+                return "瀹℃壒閫氳繃";
+            default:
+                return String.valueOf(this.settle);
+        }
+    }
+
     public String getCreateTime$(){
         if (Cools.isEmpty(this.createTime)){
             return "";
@@ -236,9 +298,9 @@
         return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime);
     }
 
-    public String getCreateBy$() {
+    public String getUserId$() {
         UserService userService = SpringUtils.getBean(UserService.class);
-        User user = userService.selectById(this.createBy);
+        User user = userService.selectById(this.userId);
         if (!Cools.isEmpty(user)){
             return String.valueOf(user.getNickname());
         }

--
Gitblit v1.9.1