中扬CRM客户关系管理系统
#
lsh
2024-04-15 13a34d2197b001799ef8f0f09e5b48af2add0926
src/main/java/com/zy/crm/manager/entity/WeeklyDailyReality.java
@@ -5,6 +5,8 @@
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableField;
import com.zy.crm.manager.service.CstmrService;
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;
@@ -74,13 +76,13 @@
    private Long deptId;
    /**
     * 状态 3: 已关闭  2: 需处理  1: 进行中  0: 未开始
     * 状态 3: 已关闭  2: 需处理  1: 进行中  0: 未开始
     */
    @ApiModelProperty(value= "状态 3: 已关闭  2: 需处理  1: 进行中  0: 未开始  ")
    private Integer status;
    /**
     * 进度 0: 默认  1: 开始  2: 组长待审  3: 组长审核  4: 规划待审  5: 规划审核  6: 审批中  7: 审批通过
     * 进度 0: 默认  1: 开始  2: 组长待审  3: 组长审核  4: 规划待审  5: 规划审核  6: 审批中  7: 审批通过
     */
    @ApiModelProperty(value= "进度 0: 默认  1: 开始  2: 组长待审  3: 组长审核  4: 规划待审  5: 规划审核  6: 审批中  7: 审批通过  ")
    private Integer settle;
@@ -150,6 +152,36 @@
    private String weeklyMatter;
    /**
     * 省
     */
    @ApiModelProperty(value= "省")
    private String province;
    /**
     * 市
     */
    @ApiModelProperty(value= "市")
    private String city;
    /**
     * 县
     */
    @ApiModelProperty(value= "县")
    private String district;
    /**
     * 镇
     */
    @ApiModelProperty(value= "镇")
    private String town;
    /**
     * 详细地址
     */
    @ApiModelProperty(value= "详细地址")
    private String addr;
    /**
     * 负责人
     */
    @ApiModelProperty(value= "负责人")
@@ -175,7 +207,7 @@
    @ApiModelProperty(value= "周报ID")
    @TableId(value = "weekly_id", type = IdType.INPUT)
    @TableField("weekly_id")
    private Integer weeklyId;
    private Long weeklyId;
    /**
     * 甲方单位ID
@@ -184,6 +216,13 @@
    @TableId(value = "cstmr_id", type = IdType.INPUT)
    @TableField("cstmr_id")
    private Long cstmrId;
    /**
     * 甲方单位ID
     */
    @ApiModelProperty(value= "甲方单位ID")
    @TableField("cstmr_name")
    private String cstmrName;
    /**
     * 星期
@@ -200,7 +239,11 @@
    public WeeklyDailyReality() {}
    public WeeklyDailyReality(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 WeeklyDailyReality(Integer weeklyDay) {
        this.weeklyDay = weeklyDay;
    }
    public WeeklyDailyReality(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;
@@ -246,6 +289,17 @@
//            null    // 备注
//    );
    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 getDailyTime$(){
        if (Cools.isEmpty(this.dailyTime)){
            return "";
@@ -280,6 +334,15 @@
        return null;
    }
    public String getCstmrId$(){
        CstmrService service = SpringUtils.getBean(CstmrService.class);
        Cstmr cstmr = service.selectById(this.cstmrId);
        if (!Cools.isEmpty(cstmr)){
            return String.valueOf(cstmr.getName());
        }
        return null;
    }
    public String getStatus$(){
        if (null == this.status){ return null; }
        switch (this.status){