|
|
@@ -420,7 +420,9 @@ public class VendorsServiceImpl implements VendorService {
|
|
|
pageParams.getFilters().put(SearchConstants.SORT_KEY, sortList);
|
|
|
SPage<Long> idSPage = searchService.searchCustomerIdList(keyword, pageParams);
|
|
|
List<Vendor> vendors = vendorDao.findAll(idSPage.getContent());
|
|
|
- setPurchaseContacts(vendors, idSPage.getContent());
|
|
|
+ if (!CollectionUtil.isEmpty(idSPage.getContent())) {
|
|
|
+ setPurchaseContacts(vendors, idSPage.getContent());
|
|
|
+ }
|
|
|
return searchService.toSPage(idSPage, vendors);
|
|
|
}
|
|
|
|
|
|
@@ -469,7 +471,9 @@ public class VendorsServiceImpl implements VendorService {
|
|
|
pageParams.getFilters().put(SearchConstants.SORT_KEY, sortList);
|
|
|
SPage<Long> idSPage = searchService.searchVendorIdList(keyword, pageParams);
|
|
|
List<Vendor> vendors = vendorDao.findAll(idSPage.getContent());
|
|
|
- setSaleContacts(vendors, idSPage.getContent());
|
|
|
+ if (!CollectionUtil.isEmpty(idSPage.getContent())) {
|
|
|
+ setSaleContacts(vendors, idSPage.getContent());
|
|
|
+ }
|
|
|
return searchService.toSPage(idSPage, vendors);
|
|
|
}
|
|
|
|