From c6e9227208dc46f2f46f046fea0b21bea398a16c Mon Sep 17 00:00:00 2001
From: LSH
Date: 星期六, 07 十月 2023 09:40:15 +0800
Subject: [PATCH] #报销相关
---
src/main/java/com/zy/crm/manager/entity/PriOnline2.java | 54 +++++++++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 53 insertions(+), 1 deletions(-)
diff --git a/src/main/java/com/zy/crm/manager/entity/PriOnline2.java b/src/main/java/com/zy/crm/manager/entity/PriOnline2.java
index a019030..754014c 100644
--- a/src/main/java/com/zy/crm/manager/entity/PriOnline2.java
+++ b/src/main/java/com/zy/crm/manager/entity/PriOnline2.java
@@ -6,6 +6,7 @@
import com.baomidou.mybatisplus.enums.IdType;
import com.core.common.Cools;
import com.core.common.SpringUtils;
+import com.zy.crm.manager.service.CstmrService;
import com.zy.crm.manager.service.PlanService;
import com.zy.crm.system.entity.User;
import com.zy.crm.system.service.UserService;
@@ -99,13 +100,37 @@
@TableField("check_data_file")
private String checkDataFile;
+ /**
+ * hostId
+ */
+ @ApiModelProperty(value= "hostId")
+ @TableField("host_id")
+ private Long hostId;
+
+ /**
+ * 杩涘害
+ */
+ @ApiModelProperty(value= "杩涘害")
+ private Integer settle;
+
+ /**
+ * 娴佺▼杩涘害
+ */
+ @ApiModelProperty(value= "娴佺▼杩涘害")
+ @TableField("settle_msg")
+ private String settleMsg;
+
+ @ApiModelProperty(value= "")
+ private String form;
+
public PriOnline2() {}
- public PriOnline2(String title, String sheetData, Date createTime, String filepath) {
+ public PriOnline2(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;
}
// PriOnline priOnline = new PriOnline(
@@ -113,6 +138,22 @@
// null, // excel琛ㄦ暟鎹�
// null // 鍒涘缓鏃堕棿
// );
+
+ 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 String getCreateTime$(){
if (Cools.isEmpty(this.createTime)){
@@ -137,6 +178,17 @@
// return null;
// }
+ 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 getPlanId$() {
PlanService planService = SpringUtils.getBean(PlanService.class);
Plan plan = planService.selectById(this.itemId);
--
Gitblit v1.9.1