| | |
| | | @Override |
| | | public FebsResponse allCategory() { |
| | | List<ApiClothesCategoryInfoVo> vos = new ArrayList<>(); |
| | | ApiClothesCategoryInfoVo apiClothesCategoryInfoVo = new ApiClothesCategoryInfoVo(); |
| | | apiClothesCategoryInfoVo.setId(0L); |
| | | apiClothesCategoryInfoVo.setName("全部"); |
| | | vos.add(apiClothesCategoryInfoVo); |
| | | List<ClothesSocialCategory> list = clothesSocialCategoryMapper.selectList( |
| | | Wrappers.lambdaQuery(ClothesSocialCategory.class) |
| | | .select(ClothesSocialCategory::getId, ClothesSocialCategory::getName) |
| | |
| | | if(CollUtil.isNotEmpty(list)){ |
| | | vos = buildApiClothesCategoryInfoVo(list, vos); |
| | | } |
| | | ApiClothesCategoryInfoVo apiClothesCategoryInfoVo = new ApiClothesCategoryInfoVo(); |
| | | apiClothesCategoryInfoVo.setId(0L); |
| | | apiClothesCategoryInfoVo.setName("全部"); |
| | | vos.add(apiClothesCategoryInfoVo); |
| | | |
| | | return new FebsResponse().success().data(vos); |
| | | } |