中扬CRM客户关系管理系统
LSH
2024-03-27 92459e3e326488acae77e068c37eb4b96eae5ebf
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){