| | |
| | | */ |
| | | @ApiModelProperty(value= "方案所需") |
| | | @TableField("plan_need") |
| | | private Long planNeed; |
| | | private String planNeed; |
| | | |
| | | /** |
| | | * 立项 1: 是 0: 否 |
| | |
| | | } |
| | | |
| | | public String getPlanNeed$(){ |
| | | PlanNeedService service = SpringUtils.getBean(PlanNeedService.class); |
| | | PlanNeed planNeed = service.selectById(this.planNeed); |
| | | if (!Cools.isEmpty(planNeed)){ |
| | | return String.valueOf(planNeed.getName()); |
| | | if (Cools.isEmpty(this.planNeed)){ |
| | | return null; |
| | | } |
| | | return null; |
| | | PlanNeedService service = SpringUtils.getBean(PlanNeedService.class); |
| | | String[] planNeeds = this.planNeed.split("-"); |
| | | String name=""; |
| | | for (String planNeeda : planNeeds){ |
| | | PlanNeed planNeed = service.selectById(Integer.parseInt(planNeeda)); |
| | | if (!Cools.isEmpty(planNeed)){ |
| | | // return String.valueOf(planNeed.getName()); |
| | | name = name+planNeed.getName()+";"; |
| | | } |
| | | } |
| | | return name; |
| | | } |
| | | |
| | | public String getBeItem$(){ |
| | |
| | | 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: |
| | |
| | | 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; |
| | | } |
| | | |