| | |
| | | } |
| | | return new FebsResponse().success().message("操作成功"); |
| | | } |
| | | |
| | | @Override |
| | | public List<AiProduct> listByCategory(AiProduct dto) { |
| | | LambdaQueryWrapper<AiProduct> query = Wrappers.lambdaQuery(AiProduct.class); |
| | | if (StrUtil.isNotEmpty(dto.getProductCategoryId())){ |
| | | query.eq(AiProduct::getProductCategoryId, dto.getProductCategoryId()); |
| | | } |
| | | if (StrUtil.isNotEmpty(dto.getCompanyId())){ |
| | | query.eq(AiProduct::getCompanyId, dto.getCompanyId()); |
| | | } |
| | | query.ne(AiProduct::getState, 2); |
| | | query.orderByAsc(AiProduct::getSort); |
| | | return aiProductMapper.selectList(query); |
| | | } |
| | | } |