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) {
|
|
|
|
|
return ServiceUtil.getService(CodeSettingServiceImpl.class,user);
|
|
|
|
|
}
|
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) {
|
|
|
|
|
getCodeSettingService(user).saveOrUpdateCodeSetting(params);
|
|
|
|
|
return ReturnResult.successed();
|
|
|
|
|
}
|
2022-05-31 09:19:04 +08:00
|
|
|
}
|