浏览按钮
parent
f8835ffd95
commit
09490fe867
@ -0,0 +1,71 @@
|
|||||||
|
package com.api.browser.service.impl;
|
||||||
|
|
||||||
|
import com.api.browser.bean.SplitTableBean;
|
||||||
|
import com.api.browser.bean.SplitTableColBean;
|
||||||
|
import com.api.browser.service.BrowserService;
|
||||||
|
import com.api.browser.util.BrowserConstant;
|
||||||
|
import com.api.browser.util.BrowserDataType;
|
||||||
|
import com.api.browser.util.SplitTableUtil;
|
||||||
|
import com.cloudstore.eccom.result.WeaResultMsg;
|
||||||
|
import com.engine.organization.component.OrganizationWeaTable;
|
||||||
|
import com.engine.organization.entity.fieldset.vo.TypeTreeVO;
|
||||||
|
import com.engine.organization.entity.scheme.vo.SchemeTableVO;
|
||||||
|
import com.engine.organization.entity.searchtree.SearchTree;
|
||||||
|
import com.engine.organization.entity.searchtree.SearchTreeParams;
|
||||||
|
import com.engine.organization.service.impl.JobServiceImpl;
|
||||||
|
import com.google.common.collect.Lists;
|
||||||
|
import weaver.general.Util;
|
||||||
|
import weaver.hrm.User;
|
||||||
|
import weaver.hrm.city.CityComInfo;
|
||||||
|
import weaver.systeminfo.SystemEnv;
|
||||||
|
|
||||||
|
|
||||||
|
import java.util.*;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
import java.util.stream.Stream;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author weaver_cl
|
||||||
|
* @Description:
|
||||||
|
* @Date 2022/7/13
|
||||||
|
* @Version V1.0
|
||||||
|
**/
|
||||||
|
public class JobBrowserService extends BrowserService {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Map<String, Object> getBrowserData(Map<String, Object> params) throws Exception {
|
||||||
|
|
||||||
|
Map<String, Object> resultMap = new HashMap<>();
|
||||||
|
|
||||||
|
String datatype = Util.null2String(params.get("datatype"));
|
||||||
|
if("tree".equals(datatype)){
|
||||||
|
|
||||||
|
List<Map<String,Object>> nodeData = new ArrayList<>();
|
||||||
|
Map<String, Object> hashMap = new HashMap<>();
|
||||||
|
hashMap.put("domid","comp_21");
|
||||||
|
hashMap.put("hasChild",true);
|
||||||
|
hashMap.put("isLeaf",false);
|
||||||
|
hashMap.put("isopen",true);
|
||||||
|
hashMap.put("key","compsss_21");
|
||||||
|
hashMap.put("name","成功");
|
||||||
|
|
||||||
|
nodeData.add(hashMap);
|
||||||
|
//resultMap.put(BrowserConstant.BROWSER_RESULT_TYPE, BrowserDataType.TREE_DATA.getTypeid());
|
||||||
|
resultMap.put("datas", nodeData);
|
||||||
|
}else {
|
||||||
|
OrganizationWeaTable<SchemeTableVO> table = new OrganizationWeaTable<>(user, SchemeTableVO.class);
|
||||||
|
WeaResultMsg result = new WeaResultMsg(false);
|
||||||
|
result.putAll(table.makeDataResult());
|
||||||
|
result.success();
|
||||||
|
resultMap.putAll(result.getResultMap());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
return resultMap;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue