| | |
| | | AppealTypeVo appealTypeVo; |
| | | //获取子类所有分类,包含自己转载对象 |
| | | List<AppealType> appealTypeList; |
| | | for(String appealTypeId : appealTypeIdList){ |
| | | if(StringUtils.isEmpty(appealTypeId)){ |
| | | continue; |
| | | } |
| | | ////获取子类所有分类,包含自己 |
| | | values.clear(); |
| | | values.put("sonTypeId", appealTypeId); |
| | | appealTypeList = commonService.selectList(AppealTypeMapper.class,sqlSentence); |
| | | for(AppealType appealType2:appealTypeList){ |
| | | appealTypeVo = new AppealTypeVo(); |
| | | appealTypeVo.setId(appealType2.getId()); |
| | | appealTypeVo.setName(appealType2.getName()); |
| | | appealTypeVo.setParentId(appealType2.getFatherId()); |
| | | appealTypeVoList.add(appealTypeVo); |
| | | if (appealTypeIdList != null && appealTypeIdList.size() > 0){ |
| | | for(String appealTypeId : appealTypeIdList){ |
| | | if(StringUtils.isEmpty(appealTypeId)){ |
| | | continue; |
| | | } |
| | | ////获取子类所有分类,包含自己 |
| | | values.clear(); |
| | | values.put("sonTypeId", appealTypeId); |
| | | appealTypeList = commonService.selectList(AppealTypeMapper.class,sqlSentence); |
| | | for(AppealType appealType2:appealTypeList){ |
| | | appealTypeVo = new AppealTypeVo(); |
| | | appealTypeVo.setId(appealType2.getId()); |
| | | appealTypeVo.setName(appealType2.getName()); |
| | | appealTypeVo.setParentId(appealType2.getFatherId()); |
| | | appealTypeVoList.add(appealTypeVo); |
| | | } |
| | | } |
| | | } |
| | | |
| | | return appealTypeVoList; |
| | | } |
| | | |