45 lines
1.3 KiB
Java
45 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;
|
|
|
|
/**
|
|
* 薪资账套的累计字段对应关系
|
|
* <p>Copyright: Copyright (c) 2023</p>
|
|
* <p>Company: 泛微软件</p>
|
|
*
|
|
* @author qiantao
|
|
* @version 1.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);
|
|
}
|
|
}
|