| | |
| | | @ApiModelProperty(value= "注释") |
| | | private String memo; |
| | | |
| | | /** |
| | | * 项目进度流程{1:项目创建,2:核价处理,3:产品费用明细,4:报价预算单,5:报价单} |
| | | */ |
| | | @ApiModelProperty(value= "项目进度流程{1:项目创建,2:核价处理,3:产品费用明细,4:报价预算单,5:报价单}") |
| | | private Integer step; |
| | | |
| | | /** |
| | | * 业务员联系方式 |
| | | */ |
| | | @ApiModelProperty(value= "业务员联系方式") |
| | | private String userXmlSelPhone; |
| | | |
| | | /** |
| | | * 节点负责人 |
| | | */ |
| | | @ApiModelProperty(value= "节点负责人") |
| | | private Long director; |
| | | |
| | | public Plan() {} |
| | | |
| | | public String getHostId$(){ |
| | |
| | | Host host = service.selectById(this.hostId); |
| | | if (!Cools.isEmpty(host)){ |
| | | return String.valueOf(host.getName()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getDirector$(){ |
| | | if (this.director==null) return ""; |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.director); |
| | | if (!Cools.isEmpty(user)){ |
| | | return String.valueOf(user.getNickname()); |
| | | } |
| | | return null; |
| | | } |
| | |
| | | PlanType planType = service.selectById(this.planType); |
| | | if (!Cools.isEmpty(planType)){ |
| | | return String.valueOf(planType.getName()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public Integer getPLType$(){ |
| | | PlanTypeService service = SpringUtils.getBean(PlanTypeService.class); |
| | | PlanType planType = service.selectById(this.planType); |
| | | if (!Cools.isEmpty(planType)){ |
| | | return planType.getType(); |
| | | } |
| | | return null; |
| | | } |
| | |
| | | public String getSettle$(){ |
| | | if (null == this.settle){ return null; } |
| | | switch (this.settle){ |
| | | // case 1: |
| | | // return "等待组长审核"; |
| | | case 1: |
| | | return "开始"; |
| | | return "等待售前分配规划员"; |
| | | case 2: |
| | | return "组长审核"; |
| | | return "等待规划员提交"; |
| | | case 3: |
| | | return "售前审核"; |
| | | return "规划员已提交"; |
| | | case 4: |
| | | return "规划员审核"; |
| | | case 5: |
| | | return "审批通过"; |
| | | default: |
| | | return String.valueOf(this.settle); |
| | |
| | | } |
| | | |
| | | public String getPlanner$(){ |
| | | if (this.planner==null) return "未分配"; |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.planner); |
| | | 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()); |
| | | } |
| | |
| | | public String getStatus$(){ |
| | | if (null == this.status){ return null; } |
| | | switch (this.status){ |
| | | case 2: |
| | | return "开始核价"; |
| | | case 1: |
| | | return "正常"; |
| | | return "等待核价"; |
| | | case 0: |
| | | return "禁用"; |
| | | return "未完成"; |
| | | default: |
| | | return String.valueOf(this.status); |
| | | } |