2022-06-14 09:36:47 +08:00
|
|
|
package com.engine.organization.wrapper;
|
|
|
|
|
|
|
|
|
|
import com.engine.common.util.ServiceUtil;
|
|
|
|
|
import com.engine.core.impl.Service;
|
2022-06-14 16:10:26 +08:00
|
|
|
import com.engine.organization.entity.fieldset.vo.TypeTreeVO;
|
|
|
|
|
import com.engine.organization.enums.ModuleTypeEnum;
|
2022-06-14 09:36:47 +08:00
|
|
|
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;
|
2022-06-14 15:29:22 +08:00
|
|
|
import java.util.Map;
|
2022-06-14 09:36:47 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @Author weaver_cl
|
2022-06-14 11:07:48 +08:00
|
|
|
* @description:
|
2022-06-14 09:36:47 +08:00
|
|
|
* @Date 2022/6/13
|
|
|
|
|
* @Version V1.0
|
|
|
|
|
**/
|
|
|
|
|
public class FieldDefinedWrapper extends Service {
|
|
|
|
|
|
|
|
|
|
private FieldDefinedService getFieldDefinedService(User user) {
|
2022-06-14 15:29:22 +08:00
|
|
|
return ServiceUtil.getService(FieldDefinedServiceImpl.class, user);
|
2022-06-14 09:36:47 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2022-06-14 16:10:26 +08:00
|
|
|
public ReturnResult getTree(ModuleTypeEnum moduleTypeEnum) {
|
|
|
|
|
List<TypeTreeVO> treeDTOS = getFieldDefinedService(user).getTree(moduleTypeEnum);
|
|
|
|
|
return ReturnResult.successed(treeDTOS);
|
2022-06-14 09:36:47 +08:00
|
|
|
}
|
2022-06-14 15:29:22 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取标题分组
|
|
|
|
|
*
|
|
|
|
|
* @param groupType
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public Map<String, Object> getTabInfo(String groupType) {
|
|
|
|
|
return getFieldDefinedService(user).getTabInfo(groupType);
|
|
|
|
|
}
|
2022-06-14 09:36:47 +08:00
|
|
|
}
|