|
|
|
@ -36,9 +36,8 @@ public class SupCompanyServiceImpl extends ServiceImpl<SupCompanyDao,SupCompanyE
|
|
|
|
|
if (companyRequest == null) {
|
|
|
|
|
return Collections.emptyList();
|
|
|
|
|
}
|
|
|
|
|
if (companyRequest.getPage() != null) {
|
|
|
|
|
int offset = (companyRequest.getPage() - 1) * companyRequest.getLimit();
|
|
|
|
|
PageHelper.offsetPage(offset, companyRequest.getLimit());
|
|
|
|
|
if (null != companyRequest.getPage() && null != companyRequest.getLimit()) {
|
|
|
|
|
PageHelper.offsetPage((companyRequest.getPage() - 1) * companyRequest.getLimit(), companyRequest.getLimit());
|
|
|
|
|
}
|
|
|
|
|
return supCompanyDao.filterCompany(companyRequest);
|
|
|
|
|
}
|
|
|
|
|