From a25d3c16f9f9be1a1b4774402d1907a28dab06fb Mon Sep 17 00:00:00 2001 From: LSH Date: 星期二, 12 九月 2023 09:43:55 +0800 Subject: [PATCH] #核价管理完善 --- src/main/java/com/zy/crm/manager/entity/PriOnline2.java | 52 +++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 51 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..3e17c27 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,15 @@ // return null; // } + 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 getPlanId$() { PlanService planService = SpringUtils.getBean(PlanService.class); Plan plan = planService.selectById(this.itemId); -- Gitblit v1.9.1