From 92459e3e326488acae77e068c37eb4b96eae5ebf Mon Sep 17 00:00:00 2001
From: LSH
Date: 星期三, 27 三月 2024 12:41:48 +0800
Subject: [PATCH] #周计划

---
 src/main/java/com/zy/crm/manager/entity/WeeklyDailyPlan.java |   34 ++++++++++++++++++++++++++++++++++
 1 files changed, 34 insertions(+), 0 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..9339cda 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;
 
     /**
@@ -209,6 +211,28 @@
         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(
 //            null,    // 鏃ユ姤鏃ユ湡[闈炵┖]
 //            null,    // 鎵�灞炰汉鍛榌闈炵┖]
@@ -282,6 +306,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