薪酬系统-福利台账,可调差人员列表功能取消分页逻辑
This commit is contained in:
parent
014190f6d0
commit
a04f4a915f
|
|
@ -11,7 +11,7 @@ import java.util.Map;
|
|||
|
||||
public interface SICompensationService {
|
||||
|
||||
PageInfo<HrmInfoDTO> getEmployeeListToCompensation(HrmQueryParam param);
|
||||
List<HrmInfoDTO> getEmployeeListToCompensation(HrmQueryParam param);
|
||||
|
||||
List<Map<String, String>> compensationCategoryType(Long id);
|
||||
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ public class SICompensationServiceImpl extends Service implements SICompensation
|
|||
* 可调差人员
|
||||
*/
|
||||
@Override
|
||||
public PageInfo<HrmInfoDTO> getEmployeeListToCompensation(HrmQueryParam param) {
|
||||
public List<HrmInfoDTO> getEmployeeListToCompensation(HrmQueryParam param) {
|
||||
// 当前登录人员
|
||||
Long currentEmployeeId = (long) user.getUID();
|
||||
|
||||
|
|
@ -103,20 +103,40 @@ public class SICompensationServiceImpl extends Service implements SICompensation
|
|||
|
||||
}
|
||||
|
||||
// 分页
|
||||
PageInfo<HrmInfoDTO> page = new PageInfo<>();
|
||||
if (resultData.size() == 0) {
|
||||
return page;
|
||||
}
|
||||
page.setTotal(resultData.size());
|
||||
|
||||
page.setList(SalaryPageUtil.subList(param.getPageNum(), param.getPageSize(), resultData));
|
||||
page.setPageSize(param.getPageSize());
|
||||
page.setPageNum(param.getPageNum());
|
||||
|
||||
|
||||
return page;
|
||||
return resultData;
|
||||
}
|
||||
// public PageInfo<HrmInfoDTO> getEmployeeListToCompensation(HrmQueryParam param) {
|
||||
// // 当前登录人员
|
||||
// Long currentEmployeeId = (long) user.getUID();
|
||||
//
|
||||
// //查询账单月份+个税扣缴义务人下的社保福利正常缴纳人员列表
|
||||
// List<InsuranceAccountDetailPO> normalDataList = getInsuranceAccountDetailMapper().queryNormalListByBillMonth(param.getBillMonth(), param.getPaymentOrganization());
|
||||
// List<Long> empIds = normalDataList.stream().map(InsuranceAccountDetailPO::getEmployeeId).collect(Collectors.toList());
|
||||
//
|
||||
// List<HrmInfoDTO> resultData = new ArrayList<>();
|
||||
// if (empIds.size() > 0) {
|
||||
// List<List<Long>> partition = Lists.partition(empIds, 1000);
|
||||
// partition.forEach(p -> {
|
||||
// param.setIds(p);
|
||||
// resultData.addAll(getEmployMapper().listHrmInfoByIdAndName(param));
|
||||
// });
|
||||
//
|
||||
// }
|
||||
//
|
||||
// // 分页
|
||||
// PageInfo<HrmInfoDTO> page = new PageInfo<>();
|
||||
// if (resultData.size() == 0) {
|
||||
// return page;
|
||||
// }
|
||||
// page.setTotal(resultData.size());
|
||||
//
|
||||
// page.setList(SalaryPageUtil.subList(param.getPageNum(), param.getPageSize(), resultData));
|
||||
// page.setPageSize(param.getPageSize());
|
||||
// page.setPageNum(param.getPageNum());
|
||||
//
|
||||
//
|
||||
// return page;
|
||||
// }
|
||||
|
||||
/**
|
||||
* 调差福利项
|
||||
|
|
|
|||
|
|
@ -710,7 +710,7 @@ public class SIAccountController {
|
|||
public String getEmployeeListToCompensation(@Context HttpServletRequest request, @Context HttpServletResponse response,
|
||||
@RequestBody HrmQueryParam param) {
|
||||
User user = HrmUserVarify.getUser(request, response);
|
||||
return new ResponseResult<HrmQueryParam, PageInfo<HrmInfoDTO>>(user).run(getSIAccountWrapper(user)::getEmployeeListToCompensation, param);
|
||||
return new ResponseResult<HrmQueryParam, List<HrmInfoDTO>>(user).run(getSIAccountWrapper(user)::getEmployeeListToCompensation, param);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ public class SIAccountWrapper extends Service {
|
|||
/**
|
||||
* 可调差人员列表
|
||||
*/
|
||||
public PageInfo<HrmInfoDTO> getEmployeeListToCompensation(HrmQueryParam hrmQueryParam) {
|
||||
public List<HrmInfoDTO> getEmployeeListToCompensation(HrmQueryParam hrmQueryParam) {
|
||||
|
||||
return getSICompensationService(user).getEmployeeListToCompensation(hrmQueryParam);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue