2022-07-07 10:14:25 +08:00
|
|
|
package com.engine.organization.wrapper;
|
|
|
|
|
|
|
|
|
|
import com.engine.common.util.ServiceUtil;
|
|
|
|
|
import com.engine.core.impl.Service;
|
2023-09-13 18:04:09 +08:00
|
|
|
import com.engine.organization.entity.chart.params.StatisticsParam;
|
2023-06-30 16:44:56 +08:00
|
|
|
import com.engine.organization.service.ChartService;
|
2022-07-07 10:14:25 +08:00
|
|
|
import com.engine.organization.service.OrgChartService;
|
2023-06-30 16:44:56 +08:00
|
|
|
import com.engine.organization.service.impl.ChartServiceImpl;
|
2022-07-07 10:14:25 +08:00
|
|
|
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);
|
2023-06-30 16:44:56 +08:00
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private ChartService getChartService(User user) {
|
|
|
|
|
return ServiceUtil.getService(ChartServiceImpl.class, user);
|
2022-07-07 10:14:25 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Map<String, Object> getOptionCondition(Map<String, Object> request2Map, User user) {
|
|
|
|
|
return getOrgChartService(user).getOptionCondition(request2Map, user);
|
|
|
|
|
}
|
|
|
|
|
|
2023-06-27 09:12:41 +08:00
|
|
|
public Map<String, Object> getSubCompanyTree(Map<String, Object> request2Map, User user) {
|
|
|
|
|
return getOrgChartService(user).getSubCompanyTree(request2Map);
|
|
|
|
|
}
|
|
|
|
|
|
2022-07-07 10:14:25 +08:00
|
|
|
public Map<String, Object> getCompanyData(Map<String, Object> request2Map, User user) {
|
2023-06-30 16:44:56 +08:00
|
|
|
// return getOrgChartService(user).getCompanyData(request2Map, user);
|
|
|
|
|
return getChartService(user).getCompanyData(request2Map);
|
2022-07-07 10:14:25 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Map<String, Object> getUserData(Map<String, Object> request2Map, User user) {
|
|
|
|
|
return getOrgChartService(user).getUserData(request2Map, user);
|
|
|
|
|
}
|
2022-07-21 11:01:36 +08:00
|
|
|
|
|
|
|
|
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) {
|
2023-07-03 10:49:48 +08:00
|
|
|
// return getOrgChartService(user).asyncCompanyData(request2Map, user);
|
|
|
|
|
return getChartService(user).asyncCompanyData(request2Map);
|
2022-07-21 11:01:36 +08:00
|
|
|
}
|
2022-08-17 19:29:46 +08:00
|
|
|
|
2022-12-16 15:58:20 +08:00
|
|
|
public String synchronousData(Map<String, Object> request2Map) {
|
2022-12-16 14:25:30 +08:00
|
|
|
return getOrgChartService(user).synchronousData(request2Map, user);
|
|
|
|
|
}
|
|
|
|
|
|
2023-06-29 17:37:05 +08:00
|
|
|
public Map<String, Object> searchTimeLines(Map<String, Object> request2Map, User user) {
|
|
|
|
|
return getOrgChartService(user).searchTimeLines(request2Map);
|
|
|
|
|
}
|
2023-07-05 17:41:30 +08:00
|
|
|
|
|
|
|
|
public Map<String, Object> getDepartmentDetail(Map<String, Object> request2Map, User user) {
|
2024-04-24 16:46:47 +08:00
|
|
|
//上海中远重工项目二开
|
|
|
|
|
return getChartService(user).getDepartmentNewDetail(request2Map);
|
|
|
|
|
//return getChartService(user).getDepartmentDetail(request2Map);
|
2023-07-05 17:41:30 +08:00
|
|
|
}
|
2023-07-12 18:00:47 +08:00
|
|
|
|
|
|
|
|
public Map<String, Object> versionRecord(Map<String, Object> request2Map, User user) {
|
|
|
|
|
return getChartService(user).versionRecord(request2Map,user);
|
|
|
|
|
}
|
2023-07-24 16:38:17 +08:00
|
|
|
|
|
|
|
|
public Map<String, Object> getDepartmentTree(Map<String, Object> request2Map, User user) {
|
|
|
|
|
return getChartService(user).getDepartmentTree(request2Map);
|
|
|
|
|
}
|
2023-07-26 10:52:10 +08:00
|
|
|
|
|
|
|
|
public Map<String, Object> getMovingTree(Map<String, Object> request2Map, User user) {
|
|
|
|
|
return getChartService(user).getMovingTree(request2Map);
|
|
|
|
|
}
|
2023-07-27 14:32:07 +08:00
|
|
|
|
|
|
|
|
public Map<String, Object> getFullSelectTree(Map<String, Object> request2Map, User user) {
|
|
|
|
|
return getChartService(user).getFullSelectTree(request2Map);
|
|
|
|
|
}
|
2023-09-12 11:20:20 +08:00
|
|
|
|
|
|
|
|
public Map<String, Object> selectStatistics(Map<String, Object> request2Map) {
|
|
|
|
|
return getChartService(user).selectStatistics(request2Map);
|
|
|
|
|
}
|
2023-09-13 18:04:09 +08:00
|
|
|
|
|
|
|
|
public Map<String, Object> recordStatistics(StatisticsParam param) {
|
|
|
|
|
return getChartService(user).recordStatistics(param);
|
|
|
|
|
}
|
2024-09-09 15:50:19 +08:00
|
|
|
|
|
|
|
|
public Map<String, Object> versionDelete(Integer versionId) {
|
|
|
|
|
return getChartService(user).versionDelete(versionId);
|
|
|
|
|
}
|
2022-07-07 10:14:25 +08:00
|
|
|
}
|