weaver-hrm-salary/src/com/engine/salary/wrapper/SalarySobAddUpRuleWrapper.java

45 lines
1.3 KiB
Java
Raw Normal View History

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;
/**
2023-08-23 16:49:45 +08:00
* 薪资账套的累计字段对应关系
* <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);
}
}