中扬CRM客户关系管理系统
Junjie
2023-11-10 bb71b47a43244e6db57cbc3cd0223bc5a64023d7
src/main/java/com/zy/crm/manager/entity/Plan.java
@@ -252,7 +252,58 @@
    @ApiModelProperty(value= "节点负责人")
    private Long director;
    public Plan() {}
    /**
     * 集成项目货架核价状态
     */
    @ApiModelProperty(value = "状态 3: 完成核价 2: 开始核价 1: 等待核价  0: 初始  ")
    private Integer status2;
    /**
     * 节点负责人
     */
    @ApiModelProperty(value = "副planId")
    @TableField("assistant_plan_id")
    private Long assistantPlanId;
    /**
     * 节点负责人
     */
    @ApiModelProperty(value = "主planId")
    @TableField("host_plan_id")
    private Long hostPlanId;
    /**
     * 节点负责人
     */
    @ApiModelProperty(value = "主planId")
    @TableField("assistant_host_sign")
    private Integer assistantHostSign;
    public Plan() {
    }
    public Plan(Plan plan) {
        this.hostId = plan.getHostId();
        this.deptId = plan.getDeptId();
        this.planType = plan.getPlanType();
        this.userId = plan.getUserId();
        this.orderId = plan.getOrderId();
        this.cstmrId = plan.getCstmrId();
        this.name = plan.getName();
        this.planNeed = plan.getPlanNeed();
        this.beItem = plan.getBeItem();
        this.form = plan.getForm();
        this.finishTime = plan.getFinishTime();
        this.change = plan.getChange();
        this.changeTime = plan.getChangeTime();
        this.changeReason = plan.getChangeReason();
        this.planBonus = plan.getPlanBonus();
        this.planLeaderBonus = plan.getPlanLeaderBonus();
        this.files = plan.getFiles();
        this.comment = plan.getComment();
        this.memo = plan.getMemo();
        this.userXmlSelPhone = plan.getUserXmlSelPhone();
    }
    public String getHostId$(){
        HostService service = SpringUtils.getBean(HostService.class);
@@ -298,6 +349,47 @@
            return planType.getType();
        }
        return null;
    }
    public String getStatusAll$(){
        if (this.status2>3 || this.getAssistantHostSign()==1){
            return getStatus$();
        }else {
            return "集成"+getStatus$()+"/"+"货架"+getStatus2$();
        }
    }
    public String getStatus$(){
        if (null == this.status){ return null; }
        switch (this.status){
            case 3:
                return "完成核价";
            case 2:
                return "开始核价";
            case 1:
                return "等待核价";
            case 0:
                return "初始";
            default:
                return String.valueOf(this.status);
        }
    }
    public String getStatus2$(){
        if (null == this.status2){ return null; }
        switch (this.status2){
            case 3:
                return "完成核价";
            case 2:
                return "开始核价";
            case 1:
                return "等待核价";
            case 0:
                return "初始";
            default:
                return String.valueOf(this.status2);
        }
    }
    public String getUserId$(){
@@ -352,7 +444,9 @@
    }
    public String getBeItem$(){
        if (null == this.beItem){ return null; }
        if (null == this.beItem) {
            return null;
        }
        switch (this.beItem){
            case 1:
                return "是";
@@ -360,6 +454,20 @@
                return "否";
            default:
                return String.valueOf(this.beItem);
        }
    }
    public String getAssistantHostSign$() {
        if (null == this.assistantHostSign) {
            return null;
        }
        switch (this.assistantHostSign) {
            case 1:
                return "副流程";
            case 0:
                return "主流程";
            default:
                return String.valueOf(this.assistantHostSign);
        }
    }
@@ -371,7 +479,9 @@
    }
    public String getChange$(){
        if (null == this.change){ return null; }
        if (null == this.change) {
            return null;
        }
        switch (this.change){
            case 1:
                return "是";
@@ -383,7 +493,9 @@
    }
    public String getSettle$(){
        if (null == this.settle){ return null; }
        if (null == this.settle) {
            return null;
        }
        switch (this.settle){
//            case 1:
//                return "等待组长审核";
@@ -418,20 +530,6 @@
            return String.valueOf(user.getNickname());
        }
        return null;
    }
    public String getStatus$(){
        if (null == this.status){ return null; }
        switch (this.status){
            case 2:
                return "开始核价";
            case 1:
                return "等待核价";
            case 0:
                return "未完成";
            default:
                return String.valueOf(this.status);
        }
    }
    public String getCreateBy$(){