diff --git a/src/com/engine/salary/wrapper/SalaryAcctEmployeeWrapper.java b/src/com/engine/salary/wrapper/SalaryAcctEmployeeWrapper.java index 04fd10324..2ee394d29 100644 --- a/src/com/engine/salary/wrapper/SalaryAcctEmployeeWrapper.java +++ b/src/com/engine/salary/wrapper/SalaryAcctEmployeeWrapper.java @@ -20,6 +20,7 @@ import com.engine.salary.service.impl.SalaryEmployeeServiceImpl; import com.engine.salary.service.impl.TaxAgentServiceImpl; import com.engine.salary.util.SalaryI18nUtil; import com.engine.salary.util.page.PageInfo; +import com.engine.salary.util.page.SalaryPageUtil; import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.lang3.math.NumberUtils; import weaver.hrm.User; @@ -114,7 +115,7 @@ public class SalaryAcctEmployeeWrapper extends Service { private PageInfo convert2ListDTO(PageInfo page) { List list = page.getList(); if (CollectionUtils.isEmpty(list)) { - return new PageInfo<>(SalaryAccEmployeeListDTO.class); + return SalaryPageUtil.buildPage(page.getPageNum(), page.getPageSize(), SalaryAccEmployeeListDTO.class); } // 查询人员信息 List employeeIds = list.stream().map(SalaryAcctEmployeePO::getEmployeeId).collect(Collectors.toList());