|  |  |  | 
|---|
|  |  |  | @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 getPlanner$(){ | 
|---|
|  |  |  | if (this.planner==null) return "未分配"; | 
|---|
|  |  |  | UserService service = SpringUtils.getBean(UserService.class); | 
|---|
|  |  |  | User user = service.selectById(this.planner); | 
|---|
|  |  |  | if (!Cools.isEmpty(user)){ | 
|---|
|  |  |  | 
|---|
|  |  |  | 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); | 
|---|
|  |  |  | } | 
|---|