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.
63 lines
2.2 KiB
Java
63 lines
2.2 KiB
Java
package com.engine.organization.wrapper;
|
|
|
|
import com.engine.common.util.ServiceUtil;
|
|
import com.engine.core.impl.Service;
|
|
import com.engine.organization.service.ChartService;
|
|
import com.engine.organization.service.OrgChartService;
|
|
import com.engine.organization.service.impl.ChartServiceImpl;
|
|
import com.engine.organization.service.impl.OrgChartServiceImpl;
|
|
import weaver.hrm.User;
|
|
|
|
import java.util.Map;
|
|
|
|
/**
|
|
* @className: OrgChartWrapper
|
|
* @author: dengjp
|
|
* @date: 2022/7/7
|
|
* @description: 组织架构图Wrapper
|
|
**/
|
|
public class OrgChartWrapper extends Service {
|
|
private OrgChartService getOrgChartService(User user) {
|
|
return ServiceUtil.getService(OrgChartServiceImpl.class, user);
|
|
|
|
}
|
|
|
|
private ChartService getChartService(User user) {
|
|
return ServiceUtil.getService(ChartServiceImpl.class, user);
|
|
}
|
|
|
|
|
|
public Map<String, Object> getOptionCondition(Map<String, Object> request2Map, User user) {
|
|
return getOrgChartService(user).getOptionCondition(request2Map, user);
|
|
}
|
|
|
|
public Map<String, Object> getSubCompanyTree(Map<String, Object> request2Map, User user) {
|
|
return getOrgChartService(user).getSubCompanyTree(request2Map);
|
|
}
|
|
|
|
public Map<String, Object> getCompanyData(Map<String, Object> request2Map, User user) {
|
|
// return getOrgChartService(user).getCompanyData(request2Map, user);
|
|
return getChartService(user).getCompanyData(request2Map);
|
|
}
|
|
|
|
public Map<String, Object> getUserData(Map<String, Object> request2Map, User user) {
|
|
return getOrgChartService(user).getUserData(request2Map, user);
|
|
}
|
|
|
|
public Map<String, Object> asyncUserData(Map<String, Object> request2Map, User user) {
|
|
return getOrgChartService(user).asyncUserData(request2Map, user);
|
|
}
|
|
|
|
public Map<String, Object> asyncCompanyData(Map<String, Object> request2Map, User user) {
|
|
return getOrgChartService(user).asyncCompanyData(request2Map, user);
|
|
}
|
|
|
|
public String synchronousData(Map<String, Object> request2Map) {
|
|
return getOrgChartService(user).synchronousData(request2Map, user);
|
|
}
|
|
|
|
public Map<String, Object> searchTimeLines(Map<String, Object> request2Map, User user) {
|
|
return getOrgChartService(user).searchTimeLines(request2Map);
|
|
}
|
|
}
|