2022-04-22 19:22:40 +08:00
|
|
|
package com.engine.salary.service.impl;
|
|
|
|
|
|
|
|
|
|
import com.engine.core.impl.Service;
|
2022-12-12 17:56:26 +08:00
|
|
|
import com.engine.salary.encrypt.EncryptUtil;
|
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 {
|
|
|
|
|
|
2022-12-12 17:56:26 +08:00
|
|
|
private EncryptUtil encryptUtil = new EncryptUtil();
|
|
|
|
|
|
2022-04-22 19:22:40 +08:00
|
|
|
private SIAccountDetailMapper getSIAccountDetailMapper(){
|
|
|
|
|
return MapperProxyFactory.getProxy(SIAccountDetailMapper.class);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public PageInfo<InsuranceAccountDetailPO> welfareList(QueryAccountDetailParam param) {
|
|
|
|
|
List<InsuranceAccountDetailPO> insuranceAccountDetailPOS = getSIAccountDetailMapper().listSome(param);
|
2022-12-12 10:25:55 +08:00
|
|
|
PageInfo<InsuranceAccountDetailPO> page = SalaryPageUtil.buildPage(param.getCurrent(), param.getPageSize(),
|
|
|
|
|
insuranceAccountDetailPOS ,InsuranceAccountDetailPO.class);
|
2022-05-31 16:02:41 +08:00
|
|
|
List<InsuranceAccountDetailPO> list = page.getList();
|
2022-12-12 17:56:26 +08:00
|
|
|
encryptUtil.decryptList(list, InsuranceAccountDetailPO.class);
|
2022-05-31 16:02:41 +08:00
|
|
|
page.setList(list);
|
2022-04-22 19:22:40 +08:00
|
|
|
return page;
|
|
|
|
|
}
|
|
|
|
|
}
|