|
|
|
@ -30,6 +30,13 @@ public class SupCompanyServiceImpl implements SupCompanyService {
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public List<SupCompanyEntity> filterCompany(FilterSupCompanyRequest companyRequest) {
|
|
|
|
|
if (companyRequest == null) {
|
|
|
|
|
return Collections.emptyList();
|
|
|
|
|
}
|
|
|
|
|
if (companyRequest.getPage() != null) {
|
|
|
|
|
int offset = (companyRequest.getPage() - 1) * companyRequest.getLimit();
|
|
|
|
|
PageHelper.offsetPage(offset, companyRequest.getLimit());
|
|
|
|
|
}
|
|
|
|
|
return supCompanyDao.filterCompany(companyRequest);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|