From 8b434a01ef9e2e48d1300be7792caa91f653b08e Mon Sep 17 00:00:00 2001
From: LSH
Date: 星期一, 11 九月 2023 20:04:05 +0800
Subject: [PATCH] #销售核价可查看甲方单位与规划单信息

---
 src/main/java/com/zy/crm/manager/entity/PriSales.java |   25 ++++++++++++++++++++++---
 1 files changed, 22 insertions(+), 3 deletions(-)

diff --git a/src/main/java/com/zy/crm/manager/entity/PriSales.java b/src/main/java/com/zy/crm/manager/entity/PriSales.java
index d548388..8ea3708 100644
--- a/src/main/java/com/zy/crm/manager/entity/PriSales.java
+++ b/src/main/java/com/zy/crm/manager/entity/PriSales.java
@@ -6,9 +6,7 @@
 import java.util.Date;
 
 import com.core.common.SpringUtils;
-import com.zy.crm.manager.service.ItemService;
-import com.zy.crm.manager.service.OrderService;
-import com.zy.crm.manager.service.PlanService;
+import com.zy.crm.manager.service.*;
 import com.zy.crm.system.entity.User;
 import com.zy.crm.system.service.UserService;
 import org.springframework.format.annotation.DateTimeFormat;
@@ -87,6 +85,10 @@
     @TableField("in_order_num")
     private String inOrderNum;
 
+    @ApiModelProperty(value= "涓婄骇id")
+    @TableField("pri_online2_id")
+    private Long priOnline2Id;
+
     @ApiModelProperty(value= "涓氬姟鍛�")
     @TableField("member_id")
     private Long memberId;
@@ -98,6 +100,15 @@
         this.sheetData = sheetData;
         this.createTime = createTime;
         this.filepath = filepath;
+    }
+
+    public Long getCstmrId$(){
+        CstmrService cstmrService = SpringUtils.getBean(CstmrService.class);
+        Cstmr cstmr = cstmrService.selectByName(1L, this.templateName);
+        if (!Cools.isEmpty(cstmr)){
+            return cstmr.getId();
+        }
+        return 0L;
     }
 
     public String getCreateTime$(){
@@ -115,6 +126,14 @@
         }
         return null;
     }
+    public String getPriOnline2Id$() {
+        PriSalesService priSalesService = SpringUtils.getBean(PriSalesService.class);
+        PriSales priSales = priSalesService.selectById(this.priOnline2Id);
+        if (!Cools.isEmpty(priSales)){
+            return String.valueOf(priSales.getId());
+        }
+        return null;
+    }
 
     public String getUpdateTime$(){
         if (Cools.isEmpty(this.updateTime)){

--
Gitblit v1.9.1