From 09ee5added9d59e90310a2586e846137ea597b19 Mon Sep 17 00:00:00 2001
From: LSH
Date: 星期五, 01 十二月 2023 13:15:42 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/crm/manager/entity/PriQuote.java |   67 ++++++++++++++++++++++++++++++---
 1 files changed, 60 insertions(+), 7 deletions(-)

diff --git a/src/main/java/com/zy/crm/manager/entity/PriQuote.java b/src/main/java/com/zy/crm/manager/entity/PriQuote.java
index 51de661..7202cc5 100644
--- a/src/main/java/com/zy/crm/manager/entity/PriQuote.java
+++ b/src/main/java/com/zy/crm/manager/entity/PriQuote.java
@@ -6,6 +6,7 @@
 import java.util.Date;
 
 import com.core.common.SpringUtils;
+import com.zy.crm.manager.service.CstmrService;
 import com.zy.crm.manager.service.ItemService;
 import com.zy.crm.manager.service.PlanService;
 import com.zy.crm.system.entity.User;
@@ -95,8 +96,26 @@
     /**
      * 杩涘害 1: 寮�濮�  2: 缁勯暱瀹℃牳  3: 鍞墠缁勯暱瀹℃牳  4: 瑙勫垝鍛樺鏍�  5: 瀹℃壒閫氳繃
      */
-    @ApiModelProperty(value= "杩涘害 1: 寮�濮�  2: 缁勯暱瀹℃牳  3: 鍞墠瀹℃牳  4: 瑙勫垝鍛樺鏍�  5: 瀹℃壒閫氳繃  ")
+    @ApiModelProperty(value= "杩涘害 1: 寮�濮�  2: 缁勯暱瀹℃牳  3: 鍞墠瀹℃牳  4: 瀹℃壒閫氳繃  ")
     private Integer settle;
+
+    /**
+     * 鎵�灞為儴闂�
+     */
+    @ApiModelProperty(value= "鎵�灞為儴闂�")
+    @TableField("dept_id")
+    private Long deptId;
+
+    /**
+     * hostId
+     */
+    @ApiModelProperty(value= "hostId")
+    @TableField("host_id")
+    private Long hostId;
+
+    @ApiModelProperty(value= "瑙勫垝鍗旾D")
+    @TableField("plan_id")
+    private Long planId;
 
     /**
      * 瀹℃牳杩涘害
@@ -105,27 +124,52 @@
     @TableField("settle_msg")
     private String settleMsg;
 
+    /**
+     * 妯℃澘
+     */
+    @ApiModelProperty(value= "妯℃澘")
+    @TableField("template")
+    private String template;
+
+    @ApiModelProperty(value= "涓婄骇id")
+    @TableField("pri_quote_budget_id")
+    private Long priQuoteBudgetId;
+
+    @ApiModelProperty(value= "涓婄骇id")
+    @TableField("pri_online_id")
+    private Long priOnlineId;
+
     public PriQuote() {}
 
-    public PriQuote(String title,String sheetData,Date createTime,String filepath) {
+    public PriQuote(String title,String sheetData,Date createTime,String filepath,Integer settle) {
         this.title = title;
         this.sheetData = sheetData;
         this.createTime = createTime;
         this.filepath = filepath;
+        this.settle = settle;
+    }
+
+    public Long getCstmrId$(){
+        PlanService planService = SpringUtils.getBean(PlanService.class);
+        Plan plan = planService.selectById(this.itemId);
+        CstmrService cstmrService = SpringUtils.getBean(CstmrService.class);
+        Cstmr cstmr = cstmrService.selectById(plan.getCstmrId());
+        if (!Cools.isEmpty(cstmr)){
+            return cstmr.getId();
+        }
+        return 0L;
     }
 
     public String getSettle$(){
         if (null == this.settle){ return null; }
         switch (this.settle){
             case 1:
-                return "绛夊緟缁勯暱瀹℃牳";
+                return "绛夊緟閮ㄩ棬缁忕悊纭";
             case 2:
-                return "绛夊緟鍞墠鍒嗛厤瑙勫垝鍛�";
+                return "绛夊緟鎬荤粡鍔炲鏍�";
             case 3:
-                return "绛夊緟瑙勫垝鍛樻彁浜�";
+                return "绛夊緟涓氬姟鍛樼‘璁�";
             case 4:
-                return "瑙勫垝鍛樺凡鎻愪氦";
-            case 5:
                 return "瀹℃壒閫氳繃";
             default:
                 return String.valueOf(this.settle);
@@ -148,6 +192,15 @@
         return null;
     }
 
+    public String getPlanName$() {
+        PlanService planService = SpringUtils.getBean(PlanService.class);
+        Plan plan = planService.selectById(this.itemId);
+        if (!Cools.isEmpty(plan)){
+            return String.valueOf(plan.getName());
+        }
+        return null;
+    }
+
     public String getUpdateTime$(){
         if (Cools.isEmpty(this.updateTime)){
             return "";

--
Gitblit v1.9.1