From cb3870820f63e6f7ba595d80dcbbfd3deae6fdf6 Mon Sep 17 00:00:00 2001
From: LSH
Date: 星期二, 07 十一月 2023 17:49:28 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/crm/manager/entity/PriQuoteBudget.java |   40 +++++++++++++++++++++++++++++++++++++++-
 1 files changed, 39 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/zy/crm/manager/entity/PriQuoteBudget.java b/src/main/java/com/zy/crm/manager/entity/PriQuoteBudget.java
index 798793d..a9004cd 100644
--- a/src/main/java/com/zy/crm/manager/entity/PriQuoteBudget.java
+++ b/src/main/java/com/zy/crm/manager/entity/PriQuoteBudget.java
@@ -95,6 +95,26 @@
     @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;
+
     public PriQuoteBudget() {}
 
     public PriQuoteBudget(String title,String sheetData,Date createTime,String filepath) {
@@ -104,9 +124,27 @@
         this.filepath = filepath;
     }
 
+    public String getSettle$(){
+        if (null == this.settle){ return null; }
+        switch (this.settle){
+            case 0:
+                return "绛夊緟鎻愪氦";
+            case 1:
+                return "绛夊緟瀹℃壒";
+            case 2:
+                return "绛夊緟纭";
+            case 3:
+                return "瀹℃壒閫氳繃";
+            default:
+                return String.valueOf(this.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.selectByName(1L, this.templateName);
+        Cstmr cstmr = cstmrService.selectById(plan.getCstmrId());
         if (!Cools.isEmpty(cstmr)){
             return cstmr.getId();
         }

--
Gitblit v1.9.1