中扬CRM客户关系管理系统
LSH
2024-03-28 e3a94fff7f518b2c84296ec4427c985676354096
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;
    /**
@@ -161,7 +163,7 @@
    @ApiModelProperty(value= "周报ID")
    @TableId(value = "weekly_id", type = IdType.INPUT)
    @TableField("weekly_id")
    private Integer weeklyId;
    private Long weeklyId;
    /**
     * 甲方单位ID
@@ -186,7 +188,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 +209,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 +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){