| | |
| | | query.eq(AiProductCategory::getLevel, ProductCategoryLevelEnum.LEVEL_TWO.getLevel()); |
| | | query.eq(AiProductCategory::getState, 1); |
| | | query.eq(AiProductCategory::getHotState, 1); |
| | | query.orderByAsc(AiProductCategory::getSort); |
| | | // query.orderByAsc(AiProductCategory::getSort); |
| | | query.orderByDesc(AiProductCategory::getSort); |
| | | List<AiProductCategory> listByQuery = this.getListByQuery(query); |
| | | if (CollUtil.isNotEmpty(listByQuery)){ |
| | | for (AiProductCategory aiProductCategory : listByQuery){ |
| | |
| | | query.eq(AiProductCategory::getLevel, ProductCategoryLevelEnum.LEVEL_TWO.getLevel()); |
| | | query.eq(AiProductCategory::getState, 1); |
| | | query.eq(AiProductCategory::getHotState, 1); |
| | | query.orderByAsc(AiProductCategory::getSort); |
| | | // query.orderByAsc(AiProductCategory::getSort); |
| | | query.orderByDesc(AiProductCategory::getSort); |
| | | List<AiProductCategory> listByQuery = this.getListByQuery(query); |
| | | if (CollUtil.isNotEmpty(listByQuery)){ |
| | | for (AiProductCategory aiProductCategory : listByQuery){ |
| | |
| | | query.eq(AiProductCategory::getLevel, ProductCategoryLevelEnum.LEVEL_ONE.getLevel()); |
| | | query.eq(AiProductCategory::getState, 1); |
| | | query.eq(AiProductCategory::getHotState, 1); |
| | | query.orderByAsc(AiProductCategory::getSort); |
| | | // query.orderByAsc(AiProductCategory::getSort); |
| | | query.orderByDesc(AiProductCategory::getSort); |
| | | List<AiProductCategory> listByQuery = this.getListByQuery(query); |
| | | if (CollUtil.isNotEmpty(listByQuery)){ |
| | | for (AiProductCategory aiProductCategory : listByQuery){ |
| | |
| | | Wrappers.lambdaQuery(AiProductCategory.class) |
| | | .eq(AiProductCategory::getParentId, dto.getParentId()) |
| | | .eq(AiProductCategory::getState, 1) |
| | | .orderByAsc(AiProductCategory::getSort) |
| | | // .orderByAsc(AiProductCategory::getSort) |
| | | .orderByDesc(AiProductCategory::getSort) |
| | | ); |
| | | if (CollUtil.isNotEmpty(aiProductCategories)){ |
| | | for (AiProductCategory aiProductCategory : aiProductCategories) { |
| | |
| | | query.eq(AiProductCategory::getCompanyId, dto.getCompanyId()); |
| | | query.eq(AiProductCategory::getState, 1); |
| | | query.eq(AiProductCategory::getLevel, ProductCategoryLevelEnum.LEVEL_ONE.getLevel()); |
| | | query.orderByAsc(AiProductCategory::getSort); |
| | | // query.orderByAsc(AiProductCategory::getSort); |
| | | query.orderByDesc(AiProductCategory::getSort); |
| | | List<AiProductCategory> listByQuery = this.getListByQuery(query); |
| | | if (CollUtil.isNotEmpty(listByQuery)){ |
| | | for (AiProductCategory aiProductCategory : listByQuery){ |