weaver-hrm-organization/src/com/engine/organization/wrapper/CodeSettingWrapper.java

31 lines
1002 B
Java
Raw Normal View History

2022-05-31 09:19:04 +08:00
package com.engine.organization.wrapper;
2022-05-31 10:39:07 +08:00
import com.engine.common.util.ServiceUtil;
import com.engine.core.impl.Service;
2022-05-31 17:56:00 +08:00
import com.engine.organization.entity.codesetting.param.CodeSaveParam;
2022-05-31 10:39:07 +08:00
import com.engine.organization.service.CodeSettingService;
import com.engine.organization.service.impl.CodeSettingServiceImpl;
import com.engine.organization.util.response.ReturnResult;
import weaver.hrm.User;
2022-05-31 09:19:04 +08:00
/**
* @Author weaver_cl
* @Description: TODO
* @Date 2022/5/30
* @Version V1.0
**/
2022-05-31 10:39:07 +08:00
public class CodeSettingWrapper extends Service {
2022-05-31 09:19:04 +08:00
2022-05-31 10:39:07 +08:00
public CodeSettingService getCodeSettingService(User user) {
2022-06-06 13:17:35 +08:00
return ServiceUtil.getService(CodeSettingServiceImpl.class, user);
2022-05-31 10:39:07 +08:00
}
2022-05-31 09:19:04 +08:00
2022-05-31 10:39:07 +08:00
public ReturnResult getHasRight(String serialtype) {
return getCodeSettingService(user).getHasRight(serialtype);
}
2022-05-31 17:56:00 +08:00
public ReturnResult saveOrUpdateCodeSetting(CodeSaveParam params) {
2022-06-06 13:17:35 +08:00
return ReturnResult.successed(getCodeSettingService(user).saveOrUpdateCodeSetting(params));
2022-05-31 17:56:00 +08:00
}
2022-05-31 09:19:04 +08:00
}