| | |
| | | */ |
| | | @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()); |
| | | 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 null; |
| | | return name; |
| | | } |
| | | |
| | | public String getBeItem$(){ |