2022-04-18 20:24:43 +08:00
|
|
|
package com.engine.salary.wrapper;
|
|
|
|
|
|
|
|
|
|
import com.engine.common.util.ServiceUtil;
|
|
|
|
|
import com.engine.core.impl.Service;
|
2022-11-16 10:15:05 +08:00
|
|
|
|
2022-11-21 15:27:15 +08:00
|
|
|
import com.engine.salary.entity.hrm.dto.HrmInfoDTO;
|
|
|
|
|
import com.engine.salary.entity.hrm.param.HrmQueryParam;
|
2022-11-28 11:35:05 +08:00
|
|
|
import com.engine.salary.entity.siaccount.dto.InsuranceCompensationDTO;
|
2022-11-23 15:39:42 +08:00
|
|
|
import com.engine.salary.entity.siaccount.param.CompensationParam;
|
2022-11-16 10:15:05 +08:00
|
|
|
import com.engine.salary.entity.siaccount.param.RecessionParam;
|
2022-11-23 15:39:42 +08:00
|
|
|
import com.engine.salary.service.SICompensationService;
|
2022-11-16 10:15:05 +08:00
|
|
|
import com.engine.salary.service.SIRecessionService;
|
2022-11-23 15:39:42 +08:00
|
|
|
import com.engine.salary.service.impl.SICompensationServiceImpl;
|
2022-11-16 10:15:05 +08:00
|
|
|
import com.engine.salary.service.impl.SIRecessionServiceImpl;
|
2022-11-21 15:27:15 +08:00
|
|
|
import com.engine.salary.util.page.PageInfo;
|
2022-04-18 20:24:43 +08:00
|
|
|
import weaver.hrm.User;
|
|
|
|
|
|
2022-11-16 10:15:05 +08:00
|
|
|
import java.util.Collection;
|
2022-11-23 15:39:42 +08:00
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.Map;
|
2022-11-16 10:15:05 +08:00
|
|
|
|
2022-04-18 20:24:43 +08:00
|
|
|
/**
|
|
|
|
|
* @Author weaver_cl
|
|
|
|
|
* @Description: TODO
|
|
|
|
|
* @Date 2022/4/18
|
|
|
|
|
* @Version V1.0
|
|
|
|
|
**/
|
|
|
|
|
public class SIAccountWrapper extends Service {
|
2022-11-16 10:15:05 +08:00
|
|
|
private SIRecessionService getSIRecessionService(User user) {
|
|
|
|
|
return (SIRecessionService) ServiceUtil.getService(SIRecessionServiceImpl.class, user);
|
|
|
|
|
}
|
2022-04-18 20:24:43 +08:00
|
|
|
|
2022-11-23 15:39:42 +08:00
|
|
|
private SICompensationService getSICompensationService(User user) {
|
|
|
|
|
return (SICompensationService) ServiceUtil.getService(SICompensationServiceImpl.class, user);
|
|
|
|
|
}
|
|
|
|
|
|
2022-11-16 10:15:05 +08:00
|
|
|
/**
|
|
|
|
|
* 新增退差数据
|
|
|
|
|
* @param param 退差请求体
|
|
|
|
|
*/
|
|
|
|
|
public void saveRecession(RecessionParam param) {
|
|
|
|
|
long currentEmployeeId = user.getUID();
|
|
|
|
|
getSIRecessionService(user).save(param, currentEmployeeId);
|
|
|
|
|
}
|
2022-04-18 20:24:43 +08:00
|
|
|
|
2022-11-16 10:15:05 +08:00
|
|
|
/**
|
|
|
|
|
* 删除退差数据
|
|
|
|
|
* @param ids 表数据id集合
|
|
|
|
|
*/
|
|
|
|
|
public void delRecession(Collection<Long> ids) {
|
|
|
|
|
long currentEmployeeId = user.getUID();
|
|
|
|
|
getSIRecessionService(user).del(ids, currentEmployeeId);
|
|
|
|
|
}
|
2022-11-21 15:27:15 +08:00
|
|
|
|
2022-11-23 15:39:42 +08:00
|
|
|
/**
|
|
|
|
|
* 可退差人员列表
|
|
|
|
|
*/
|
2022-11-21 15:27:15 +08:00
|
|
|
public PageInfo<HrmInfoDTO> getEmployeeListByTaxAgent(HrmQueryParam param) {
|
|
|
|
|
|
|
|
|
|
return getSIRecessionService(user).getEmployeeListByTaxAgent(param);
|
|
|
|
|
}
|
2022-11-23 15:39:42 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 可调差人员列表
|
|
|
|
|
*/
|
|
|
|
|
public PageInfo<HrmInfoDTO> getEmployeeListToCompensation(HrmQueryParam hrmQueryParam) {
|
|
|
|
|
|
|
|
|
|
return getSICompensationService(user).getEmployeeListToCompensation(hrmQueryParam);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取社保福利项
|
|
|
|
|
*/
|
|
|
|
|
public List<Map<String, String>> compensationCategoryType(Long id) {
|
|
|
|
|
|
|
|
|
|
return getSICompensationService(user).compensationCategoryType(id);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取当前调差福利类型-公司方支出总计
|
|
|
|
|
*/
|
|
|
|
|
public Map<Long, List<Map<String, String>>> compensationComTotal(Map<Long, List<CompensationParam>> param) {
|
|
|
|
|
|
|
|
|
|
return getSICompensationService(user).compensationComTotal(param);
|
|
|
|
|
}
|
2022-11-28 11:35:05 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 社保调差保存
|
|
|
|
|
*/
|
|
|
|
|
public Map<String, String> compensationSave(List<InsuranceCompensationDTO> param) {
|
|
|
|
|
|
|
|
|
|
return getSICompensationService(user).compensationAccount(param);
|
|
|
|
|
}
|
2022-11-28 13:42:53 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 社保调差默认配置保存
|
|
|
|
|
*/
|
|
|
|
|
public String compensationConfigSave(List<InsuranceCompensationDTO> param) {
|
|
|
|
|
|
|
|
|
|
return getSICompensationService(user).compensationConfigSave(param);
|
|
|
|
|
}
|
2022-11-28 14:57:29 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 社保调差撤回
|
|
|
|
|
*/
|
|
|
|
|
public String compensationBack(InsuranceCompensationDTO param) {
|
|
|
|
|
|
|
|
|
|
return getSICompensationService(user).compensationRevert(param);
|
|
|
|
|
}
|
2022-04-18 20:24:43 +08:00
|
|
|
}
|