From fabb29dfd7fdcc19727c459c8ef309a86d73ed09 Mon Sep 17 00:00:00 2001 From: LSH Date: 星期二, 17 十月 2023 10:37:14 +0800 Subject: [PATCH] # --- src/main/java/com/zy/crm/manager/entity/PriQuote.java | 27 +++++++++++++++++++++++++++ 1 files changed, 27 insertions(+), 0 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 371577d..74069ef 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; @@ -106,6 +107,13 @@ private Long deptId; /** + * hostId + */ + @ApiModelProperty(value= "hostId") + @TableField("host_id") + private Long hostId; + + /** * 瀹℃牳杩涘害 */ @ApiModelProperty(value= "瀹℃牳杩涘害") @@ -119,6 +127,14 @@ @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,Integer settle) { @@ -129,6 +145,17 @@ 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){ -- Gitblit v1.9.1