2024-08-28 17:42:16 +08:00
|
|
|
package com.engine.salary.wrapper;
|
|
|
|
|
|
|
|
|
|
import com.engine.common.util.ServiceUtil;
|
|
|
|
|
import com.engine.core.impl.Service;
|
|
|
|
|
import com.engine.salary.entity.ly.param.LyPZGenParam;
|
|
|
|
|
import com.engine.salary.entity.ly.param.LySalaryReportQueryParam;
|
|
|
|
|
import com.engine.salary.entity.ly.po.LySalaryReportPO;
|
|
|
|
|
import com.engine.salary.entity.ly.po.LySocialReportPO;
|
|
|
|
|
import com.engine.salary.service.LyPZService;
|
|
|
|
|
import com.engine.salary.service.LySalaryReportService;
|
|
|
|
|
import com.engine.salary.service.LySocialReportService;
|
|
|
|
|
import com.engine.salary.service.impl.LyPZServiceImpl;
|
|
|
|
|
import com.engine.salary.service.impl.LySalaryReportServiceImpl;
|
|
|
|
|
import com.engine.salary.service.impl.LySocialReportServiceImpl;
|
|
|
|
|
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
|
|
|
|
|
import weaver.hrm.User;
|
|
|
|
|
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @author Harryxzy
|
|
|
|
|
* @ClassName LySalaryWrapper
|
|
|
|
|
* @date 2024/08/21 16:56
|
|
|
|
|
* @description 领悦 薪酬二开
|
|
|
|
|
*/
|
|
|
|
|
public class LySalaryWrapper extends Service {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private LySalaryReportService getLySalaryReportService(User user) {
|
|
|
|
|
return ServiceUtil.getService(LySalaryReportServiceImpl.class, user);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private LySocialReportService getLySocialReportService(User user) {
|
|
|
|
|
return ServiceUtil.getService(LySocialReportServiceImpl.class, user);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private LyPZService getLyPZService(User user) {
|
|
|
|
|
return ServiceUtil.getService(LyPZServiceImpl.class, user);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 生成薪酬汇总报表
|
|
|
|
|
*
|
|
|
|
|
* @param param
|
|
|
|
|
*/
|
|
|
|
|
public void generateSalaryReport(LySalaryReportQueryParam param) {
|
|
|
|
|
getLySalaryReportService(user).generateSalaryReport(param);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Map<String, Object> listSalaryReport(LySalaryReportQueryParam param) {
|
|
|
|
|
return getLySalaryReportService(user).listSalaryReport(param);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void deleteSalaryReport(List<Long> salaryReportIds) {
|
|
|
|
|
getLySalaryReportService(user).deleteSalaryReport(salaryReportIds);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Map<String, Object> salaryReportSum(LySalaryReportQueryParam param) {
|
|
|
|
|
Map<String, Object> datas = new HashMap<>();
|
|
|
|
|
|
|
|
|
|
//合计
|
|
|
|
|
LySalaryReportPO sumRow = getLySalaryReportService(user).sumRow(param);
|
|
|
|
|
datas.put("sumRow", sumRow);
|
|
|
|
|
return datas;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void generateSIReport(LySalaryReportQueryParam param) {
|
|
|
|
|
getLySocialReportService(user).generateSocialReport(param);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 查询社保公积金汇总报表
|
|
|
|
|
*
|
|
|
|
|
* @param param
|
|
|
|
|
*/
|
|
|
|
|
public Map<String, Object> listSIReport(LySalaryReportQueryParam param) {
|
|
|
|
|
return getLySocialReportService(user).listSIReport(param);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 社保公积金汇总报表 合计行
|
|
|
|
|
*
|
|
|
|
|
* @param param
|
|
|
|
|
*/
|
|
|
|
|
public Map<String, Object> sIReportSum(LySalaryReportQueryParam param) {
|
|
|
|
|
Map<String, Object> datas = new HashMap<>();
|
|
|
|
|
|
|
|
|
|
//合计
|
|
|
|
|
LySocialReportPO sumRow = getLySocialReportService(user).sumRow(param);
|
|
|
|
|
datas.put("sumRow", sumRow);
|
|
|
|
|
return datas;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 删除报表数据
|
|
|
|
|
*
|
|
|
|
|
* @param siReportIds
|
|
|
|
|
*/
|
|
|
|
|
public void deleteSIReport(List<Long> siReportIds) {
|
|
|
|
|
getLySocialReportService(user).deleteSocialReport(siReportIds);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 薪酬统计报表导出
|
|
|
|
|
* @param param
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public XSSFWorkbook exportSalaryReport(LySalaryReportQueryParam param) {
|
|
|
|
|
return getLySalaryReportService(user).exportSalaryReport(param);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 社保公积金汇总报表导出
|
|
|
|
|
* @param param
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public XSSFWorkbook exportSIReport(LySalaryReportQueryParam param) {
|
|
|
|
|
return getLySocialReportService(user).exportSIReport(param);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void genPZ(LyPZGenParam queryParam) {
|
|
|
|
|
getLyPZService(user).genPZ(queryParam);
|
|
|
|
|
}
|
2024-08-30 10:28:44 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 领悦报表权限
|
|
|
|
|
* @param user
|
|
|
|
|
*/
|
|
|
|
|
public Boolean lyReportPermission(User user) {
|
|
|
|
|
return getLySalaryReportService(user).lyReportPermission(user);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public List<String> getCanManageFrztByUid(User user) {
|
|
|
|
|
return getLySalaryReportService(user).getCanManageFrztByUid(user);
|
|
|
|
|
}
|
2024-08-28 17:42:16 +08:00
|
|
|
}
|