2022-04-22 19:22:40 +08:00
|
|
|
package com.engine.salary.service.impl;
|
|
|
|
|
|
|
|
|
|
import com.engine.core.impl.Service;
|
2022-05-31 16:02:41 +08:00
|
|
|
import com.engine.salary.encrypt.siaccount.InsuranceAccountDetailPOEncrypt;
|
2022-04-22 19:22:40 +08:00
|
|
|
import com.engine.salary.entity.siaccount.param.QueryAccountDetailParam;
|
|
|
|
|
import com.engine.salary.entity.siaccount.po.InsuranceAccountDetailPO;
|
|
|
|
|
import com.engine.salary.mapper.siaccount.SIAccountDetailMapper;
|
|
|
|
|
import com.engine.salary.service.SIReportService;
|
|
|
|
|
import com.engine.salary.util.db.MapperProxyFactory;
|
|
|
|
|
import com.engine.salary.util.page.PageInfo;
|
2022-05-25 13:10:03 +08:00
|
|
|
import com.engine.salary.util.page.SalaryPageUtil;
|
2022-04-22 19:22:40 +08:00
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class SIReportServiceImpl extends Service implements SIReportService {
|
|
|
|
|
|
|
|
|
|
private SIAccountDetailMapper getSIAccountDetailMapper(){
|
|
|
|
|
return MapperProxyFactory.getProxy(SIAccountDetailMapper.class);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public PageInfo<InsuranceAccountDetailPO> welfareList(QueryAccountDetailParam param) {
|
2022-05-25 13:10:03 +08:00
|
|
|
SalaryPageUtil.start(param.getCurrent(),param.getPageSize());
|
2022-04-22 19:22:40 +08:00
|
|
|
List<InsuranceAccountDetailPO> insuranceAccountDetailPOS = getSIAccountDetailMapper().listSome(param);
|
|
|
|
|
PageInfo<InsuranceAccountDetailPO> page = new PageInfo<>(insuranceAccountDetailPOS ,InsuranceAccountDetailPO.class);
|
2022-05-31 16:02:41 +08:00
|
|
|
List<InsuranceAccountDetailPO> list = page.getList();
|
|
|
|
|
InsuranceAccountDetailPOEncrypt.decryptInsuranceAccountDetailPOList(list);
|
|
|
|
|
page.setList(list);
|
2022-04-22 19:22:40 +08:00
|
|
|
return page;
|
|
|
|
|
}
|
|
|
|
|
}
|