| | |
| | | @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 "等待组长审核"; |
| | | case 2: |
| | | return "等待售前分配规划员"; |
| | | case 3: |
| | | case 2: |
| | | return "等待规划员提交"; |
| | | case 4: |
| | | case 3: |
| | | return "规划员已提交"; |
| | | case 5: |
| | | case 4: |
| | | 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)){ |
| | |
| | | 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); |
| | | } |