You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
package com.engine.organization.wrapper;
|
|
|
|
|
|
|
|
import com.engine.common.util.ServiceUtil;
|
|
|
|
import com.engine.core.impl.Service;
|
|
|
|
import com.engine.organization.entity.fieldset.vo.TypeTreeVO;
|
|
|
|
import com.engine.organization.enums.ModuleTypeEnum;
|
|
|
|
import com.engine.organization.service.FieldDefinedService;
|
|
|
|
import com.engine.organization.service.impl.FieldDefinedServiceImpl;
|
|
|
|
import com.engine.organization.util.response.ReturnResult;
|
|
|
|
import weaver.hrm.User;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @Author weaver_cl
|
|
|
|
* @description:
|
|
|
|
* @Date 2022/6/13
|
|
|
|
* @Version V1.0
|
|
|
|
**/
|
|
|
|
public class FieldDefinedWrapper extends Service {
|
|
|
|
|
|
|
|
private FieldDefinedService getFieldDefinedService(User user) {
|
|
|
|
return ServiceUtil.getService(FieldDefinedServiceImpl.class,user);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public ReturnResult getTree(ModuleTypeEnum moduleTypeEnum) {
|
|
|
|
List<TypeTreeVO> treeDTOS = getFieldDefinedService(user).getTree(moduleTypeEnum);
|
|
|
|
return ReturnResult.successed(treeDTOS);
|
|
|
|
}
|
|
|
|
}
|