44 lines
1.3 KiB
Java
44 lines
1.3 KiB
Java
|
|
package com.engine.salary.wrapper;
|
||
|
|
|
||
|
|
import com.engine.common.util.ServiceUtil;
|
||
|
|
import com.engine.core.impl.Service;
|
||
|
|
import com.engine.salary.entity.salarysob.dto.SalarySobAddUpRuleDTO;
|
||
|
|
import com.engine.salary.entity.salarysob.param.SalarySobAddUpRuleSaveParam;
|
||
|
|
import com.engine.salary.service.SalarySobAddUpRuleService;
|
||
|
|
import com.engine.salary.service.impl.SalarySobAddUpRuleServiceImpl;
|
||
|
|
import weaver.hrm.User;
|
||
|
|
|
||
|
|
import java.util.List;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @description: 薪资账套的累计字段对应关系
|
||
|
|
* @author: xiajun
|
||
|
|
* @modified By: xiajun
|
||
|
|
* @date: Created in 2023/1/4 10:36 AM
|
||
|
|
* @version:v1.0
|
||
|
|
*/
|
||
|
|
public class SalarySobAddUpRuleWrapper extends Service {
|
||
|
|
|
||
|
|
private SalarySobAddUpRuleService getSalarySobAddUpRuleService(User user) {
|
||
|
|
return ServiceUtil.getService(SalarySobAddUpRuleServiceImpl.class, user);
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* 获取薪资账套的累计字段对应关系
|
||
|
|
*
|
||
|
|
* @param salarySobId
|
||
|
|
* @return
|
||
|
|
*/
|
||
|
|
public List<SalarySobAddUpRuleDTO> getForm(Long salarySobId) {
|
||
|
|
return getSalarySobAddUpRuleService(user).listSalarySobAddUpRuleDTO(salarySobId);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 保存薪资账套的累计字段对应关系
|
||
|
|
*
|
||
|
|
* @param saveParam
|
||
|
|
*/
|
||
|
|
public void save(SalarySobAddUpRuleSaveParam saveParam) {
|
||
|
|
getSalarySobAddUpRuleService(user).saveByParam(saveParam);
|
||
|
|
}
|
||
|
|
}
|