Commit 84c46ab8 by zhiwj

品牌

parent f35f8ec5
......@@ -253,8 +253,11 @@ public class PlatformBrandApiServiceImpl implements PlatformBrandApiService {
Integer pageSize) {
PageHelper.startPage(pageNum, pageSize);
TabPlatformBrand brand = this.platformBrandService.getByBrandName(brandName);
if (brand == null) {
return ServiceResponse.success(new Page<>());
}
com.github.pagehelper.Page<TabPlatformBrandRef> brandRefPage = this.platformBrandRefService
.listByPlatformBrandRef(brand == null ? null : brand.getPlatformBrandId());
.listByPlatformBrandRef(brand.getPlatformBrandId());
Page<PlatformBrandRefDTO> page = PageHelperUtils.changePageHelperToCurrentPage(brandRefPage,
PlatformBrandRefDTO.class);
if (CollectionUtils.isNotEmpty(page.getResult())) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment