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-12-08 16:23:18 +08:00
|
|
|
import com.engine.salary.entity.siaccount.param.InspectAccountParam;
|
2022-11-16 10:15:05 +08:00
|
|
|
import com.engine.salary.entity.siaccount.param.RecessionParam;
|
2022-12-27 17:34:46 +08:00
|
|
|
import com.engine.salary.entity.siaccount.param.SupplementAccountBaseParam;
|
2022-12-08 16:23:18 +08:00
|
|
|
import com.engine.salary.service.SIBalanceService;
|
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-12-27 17:34:46 +08:00
|
|
|
import com.engine.salary.service.SIRepairService;
|
2022-12-08 16:23:18 +08:00
|
|
|
import com.engine.salary.service.impl.SIBalanceServiceImpl;
|
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-12-27 17:34:46 +08:00
|
|
|
import com.engine.salary.service.impl.SIRepairServiceImpl;
|
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-12-08 16:23:18 +08:00
|
|
|
private SIBalanceService getSIBalanceService(User user) {
|
|
|
|
|
return (SIBalanceService) ServiceUtil.getService(SIBalanceServiceImpl.class, user);
|
|
|
|
|
}
|
|
|
|
|
|
2022-12-27 17:34:46 +08:00
|
|
|
private SIRepairService getSIRepairService(User user) {
|
|
|
|
|
return (SIRepairService) ServiceUtil.getService(SIRepairServiceImpl.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
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 可调差人员列表
|
|
|
|
|
*/
|
2022-12-05 15:42:49 +08:00
|
|
|
public List<HrmInfoDTO> getEmployeeListToCompensation(HrmQueryParam hrmQueryParam) {
|
2022-11-23 15:39:42 +08:00
|
|
|
|
|
|
|
|
return getSICompensationService(user).getEmployeeListToCompensation(hrmQueryParam);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取社保福利项
|
|
|
|
|
*/
|
|
|
|
|
public List<Map<String, String>> compensationCategoryType(Long id) {
|
|
|
|
|
|
|
|
|
|
return getSICompensationService(user).compensationCategoryType(id);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取当前调差福利类型-公司方支出总计
|
|
|
|
|
*/
|
2022-11-29 17:36:18 +08:00
|
|
|
public List<Map<String, String>> compensationComTotal(List<CompensationParam> paramList) {
|
2022-11-23 15:39:42 +08:00
|
|
|
|
2022-11-29 17:36:18 +08:00
|
|
|
return getSICompensationService(user).compensationComTotal(paramList);
|
2022-11-23 15:39:42 +08:00
|
|
|
}
|
2022-11-28 11:35:05 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 社保调差保存
|
|
|
|
|
*/
|
2022-11-30 15:05:24 +08:00
|
|
|
public Map<String, Object> compensationSave(List<InsuranceCompensationDTO> param) {
|
2022-11-28 11:35:05 +08:00
|
|
|
|
|
|
|
|
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-11-29 15:33:57 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 社保调差列表
|
|
|
|
|
*/
|
|
|
|
|
public Map<String, Object> compensationList(InsuranceCompensationDTO param) {
|
|
|
|
|
return getSICompensationService(user).compensationList(param.getBillMonth(), param.getPaymentOrganization());
|
|
|
|
|
}
|
2022-12-08 16:23:18 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 删除补差数据
|
|
|
|
|
* @param param 表数据id集合、账单月、个税扣缴义务人
|
|
|
|
|
*/
|
|
|
|
|
public void delBalance(InspectAccountParam param) {
|
|
|
|
|
long currentEmployeeId = user.getUID();
|
|
|
|
|
getSIBalanceService(user).del(param, currentEmployeeId);
|
|
|
|
|
}
|
2022-12-27 17:34:46 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 取指定月份的福利缴纳基数作为补缴基数
|
|
|
|
|
* @param param
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public List<Map<String, String>> getSupplementPaymentForm(SupplementAccountBaseParam param) {
|
|
|
|
|
return getSIRepairService(user).getSupplementPaymentForm(param);
|
|
|
|
|
}
|
2022-12-28 17:01:15 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取待编辑的补缴费用相关福利项
|
|
|
|
|
* @param param
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public List<Map<String, String>> getPaymentGroup(SupplementAccountBaseParam param) {
|
|
|
|
|
return getSIRepairService(user).getPaymentGroup(param);
|
|
|
|
|
}
|
2022-04-18 20:24:43 +08:00
|
|
|
}
|