中扬CRM客户关系管理系统
LSH
2023-08-22 564bf7ab6a639c2c4557d35b8fd9b51dca60a738
src/main/java/com/zy/crm/manager/entity/Plan.java
@@ -234,6 +234,12 @@
    @ApiModelProperty(value= "注释")
    private String memo;
    /**
     * 项目进度流程{1:项目创建,2:核价处理,3:产品费用明细,4:报价预算单,5:报价单}
     */
    @ApiModelProperty(value= "项目进度流程{1:项目创建,2:核价处理,3:产品费用明细,4:报价预算单,5:报价单}")
    private Integer step;
    public Plan() {}
    public String getHostId$(){
@@ -298,6 +304,9 @@
    }
    public String getPlanNeed$(){
        if (Cools.isEmpty(this.planNeed)){
            return null;
        }
        PlanNeedService service = SpringUtils.getBean(PlanNeedService.class);
        String[] planNeeds = this.planNeed.split("-");
        String name="";
@@ -346,13 +355,13 @@
        if (null == this.settle){ return null; }
        switch (this.settle){
            case 1:
                return "开始";
                return "等待组长审核";
            case 2:
                return "组长审核";
                return "等待售前分配规划员";
            case 3:
                return "售前审核";
                return "等待规划员提交";
            case 4:
                return "规划员审核";
                return "规划员已提交";
            case 5:
                return "审批通过";
            default:
@@ -366,6 +375,16 @@
        if (!Cools.isEmpty(user)){
            return String.valueOf(user.getNickname());
        }
        return "";
    }
    public String getNowHeadman$(){
        PlanTypeService planTypeService = SpringUtils.getBean(PlanTypeService.class);
        PlanType planType = planTypeService.selectById(this.planType);
        User user = planTypeService.findPlanLeader(planType);
        if (!Cools.isEmpty(user)){
            return String.valueOf(user.getNickname());
        }
        return null;
    }