From 25f51717cce32d8260ead3247d47883ef8a3070d Mon Sep 17 00:00:00 2001
From: LSH
Date: 星期一, 14 八月 2023 09:23:44 +0800
Subject: [PATCH] #
---
src/main/java/com/zy/crm/manager/entity/PriQuote.java | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++-----
1 files changed, 52 insertions(+), 5 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 b379866..24e640d 100644
--- a/src/main/java/com/zy/crm/manager/entity/PriQuote.java
+++ b/src/main/java/com/zy/crm/manager/entity/PriQuote.java
@@ -7,6 +7,7 @@
import com.core.common.SpringUtils;
import com.zy.crm.manager.service.ItemService;
+import com.zy.crm.manager.service.PlanService;
import com.zy.crm.system.entity.User;
import com.zy.crm.system.service.UserService;
import org.springframework.format.annotation.DateTimeFormat;
@@ -85,6 +86,25 @@
@TableField("member_id")
private Long memberId;
+ /**
+ * 琛ㄥ崟鍐呭
+ */
+ @ApiModelProperty(value= "琛ㄥ崟鍐呭")
+ private String form;
+
+ /**
+ * 杩涘害 1: 寮�濮� 2: 缁勯暱瀹℃牳 3: 鍞墠缁勯暱瀹℃牳 4: 瑙勫垝鍛樺鏍� 5: 瀹℃壒閫氳繃
+ */
+ @ApiModelProperty(value= "杩涘害 1: 寮�濮� 2: 缁勯暱瀹℃牳 3: 鍞墠瀹℃牳 4: 瑙勫垝鍛樺鏍� 5: 瀹℃壒閫氳繃 ")
+ private Integer settle;
+
+ /**
+ * 瀹℃牳杩涘害
+ */
+ @ApiModelProperty(value= "瀹℃牳杩涘害")
+ @TableField("settle_msg")
+ private String settleMsg;
+
public PriQuote() {}
public PriQuote(String title,String sheetData,Date createTime,String filepath) {
@@ -94,6 +114,24 @@
this.filepath = filepath;
}
+ public String getSettle$(){
+ if (null == this.settle){ return null; }
+ switch (this.settle){
+ case 1:
+ return "绛夊緟缁勯暱瀹℃牳";
+ case 2:
+ return "绛夊緟鍞墠鍒嗛厤瑙勫垝鍛�";
+ case 3:
+ return "绛夊緟瑙勫垝鍛樻彁浜�";
+ case 4:
+ return "瑙勫垝鍛樺凡鎻愪氦";
+ case 5:
+ return "瀹℃壒閫氳繃";
+ default:
+ return String.valueOf(this.settle);
+ }
+ }
+
public String getCreateTime$(){
if (Cools.isEmpty(this.createTime)){
return "";
@@ -101,11 +139,20 @@
return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime);
}
- public String getItemId$() {
- ItemService itemService = SpringUtils.getBean(ItemService.class);
- Item item = itemService.selectById(this.itemId);
- if (!Cools.isEmpty(item)){
- return String.valueOf(item.getName());
+ public String getPlanId$() {
+ PlanService planService = SpringUtils.getBean(PlanService.class);
+ Plan plan = planService.selectById(this.itemId);
+ if (!Cools.isEmpty(plan)){
+ return String.valueOf(plan.getUuid());
+ }
+ 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;
}
--
Gitblit v1.9.1