From d91c343a39c795cf66638e71f6a7f2f1eb029e6b Mon Sep 17 00:00:00 2001
From: LSH
Date: 星期四, 28 三月 2024 15:22:40 +0800
Subject: [PATCH] #周计划
---
src/main/java/com/zy/crm/manager/entity/WeeklyDailyPlan.java | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 50 insertions(+), 2 deletions(-)
diff --git a/src/main/java/com/zy/crm/manager/entity/WeeklyDailyPlan.java b/src/main/java/com/zy/crm/manager/entity/WeeklyDailyPlan.java
index ec4b599..f346569 100644
--- a/src/main/java/com/zy/crm/manager/entity/WeeklyDailyPlan.java
+++ b/src/main/java/com/zy/crm/manager/entity/WeeklyDailyPlan.java
@@ -5,6 +5,7 @@
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableField;
+import com.zy.crm.manager.service.WeeklyCostTypesService;
import com.zy.crm.system.entity.*;
import com.zy.crm.system.service.*;
import org.springframework.format.annotation.DateTimeFormat;
@@ -41,6 +42,7 @@
* ID
*/
@ApiModelProperty(value= "ID")
+ @TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
@@ -97,6 +99,20 @@
*/
@ApiModelProperty(value= "璇勮")
private String comment;
+
+ /**
+ * 宸ヤ綔鍐呭
+ */
+ @ApiModelProperty(value= "宸ヤ綔鍐呭")
+ @TableField("work_content")
+ private String workContent;
+
+ /**
+ * 宸ヤ綔鐩殑
+ */
+ @ApiModelProperty(value= "宸ヤ綔鐩殑")
+ @TableField("work_purpose")
+ private String workPurpose;
/**
* 娣诲姞浜哄憳
@@ -161,7 +177,7 @@
@ApiModelProperty(value= "鍛ㄦ姤ID")
@TableId(value = "weekly_id", type = IdType.INPUT)
@TableField("weekly_id")
- private Integer weeklyId;
+ private Long weeklyId;
/**
* 鐢叉柟鍗曚綅ID
@@ -186,7 +202,7 @@
public WeeklyDailyPlan() {}
- public WeeklyDailyPlan(Date dailyTime,Long userId,Long hostId,Long deptId,Integer status,Integer settle,String settleMsg,String comment,Long createBy,Date createTime,Long updateBy,Date updateTime,String weeklyMatter,Long director,Integer settleSize,Integer settleCurrent,Integer weeklyId,Long cstmrId,Integer weeklyDay,String memo) {
+ public WeeklyDailyPlan(Date dailyTime,Long userId,Long hostId,Long deptId,Integer status,Integer settle,String settleMsg,String comment,Long createBy,Date createTime,Long updateBy,Date updateTime,String weeklyMatter,Long director,Integer settleSize,Integer settleCurrent,Long weeklyId,Long cstmrId,Integer weeklyDay,String memo) {
this.dailyTime = dailyTime;
this.userId = userId;
this.hostId = hostId;
@@ -207,6 +223,28 @@
this.cstmrId = cstmrId;
this.weeklyDay = weeklyDay;
this.memo = memo;
+ }
+
+ public WeeklyDailyPlan(Integer weeklyDay) {
+ this.weeklyDay = weeklyDay;
+// this.userId = userId;
+// this.hostId = hostId;
+// this.deptId = deptId;
+// this.status = status;
+// this.settle = settle;
+// this.settleMsg = settleMsg;
+// this.comment = comment;
+// this.createBy = createBy;
+// this.createTime = createTime;
+// this.updateBy = updateBy;
+// this.updateTime = updateTime;
+// this.weeklyMatter = weeklyMatter;
+// this.director = director;
+// this.settleSize = settleSize;
+// this.settleCurrent = settleCurrent;
+// this.weeklyId = weeklyId;
+// this.cstmrId = cstmrId;
+// this.memo = memo;
}
// WeeklyDailyPlan weeklyDailyPlan = new WeeklyDailyPlan(
@@ -282,6 +320,16 @@
}
}
+ public String getWeeklyDay$(){
+ if (null == this.weeklyDay){ return ""; }
+ WeeklyCostTypesService weeklyCostTypesService = SpringUtils.getBean(WeeklyCostTypesService.class);
+ WeeklyCostTypes weeklyCostTypes = weeklyCostTypesService.selectById(this.weeklyDay);
+ if (!Cools.isEmpty(weeklyCostTypes)){
+ return String.valueOf(weeklyCostTypes.getTypeName());
+ }
+ return null;
+ }
+
public String getSettle$(){
if (null == this.settle){ return null; }
switch (this.settle){
--
Gitblit v1.9.1