Commit c2a30b77 authored by gaodongdong's avatar gaodongdong

修复bug

parent cf55039f
...@@ -35,12 +35,11 @@ public interface IOrgUsrService { ...@@ -35,12 +35,11 @@ public interface IOrgUsrService {
* @param NAMEMethodName * @param NAMEMethodName
* @param PARENTIDMethodName * @param PARENTIDMethodName
* @param OrgTypeMethodName * @param OrgTypeMethodName
* @param KeyMethodName
* @return * @return
* @throws Exception * @throws Exception
*/ */
List<OrgMenuVo> getTree(Long topId, Collection entityList, String packageURL, String IDMethodName, int IDHierarchy, List<OrgMenuVo> getTree(Long topId, Collection entityList, String packageURL, String IDMethodName, int IDHierarchy,
String NAMEMethodName, String PARENTIDMethodName, String OrgTypeMethodName, String KeyMethodName) throws Exception; String NAMEMethodName, String PARENTIDMethodName, String OrgTypeMethodName) throws Exception;
/** /**
* 获取子数据集合 * 获取子数据集合
...@@ -56,7 +55,7 @@ public interface IOrgUsrService { ...@@ -56,7 +55,7 @@ public interface IOrgUsrService {
* @throws Exception * @throws Exception
*/ */
List<OrgMenuVo> getSub(Long topId, Collection entityList, String packageURL, String IDMethodName, int IDHierarchy, List<OrgMenuVo> getSub(Long topId, Collection entityList, String packageURL, String IDMethodName, int IDHierarchy,
String NAMEMethodName, String PARENTIDMethodName, String OrgTypeMethodName, String KeyMethodName) throws Exception; String NAMEMethodName, String PARENTIDMethodName, String OrgTypeMethodName) throws Exception;
/** /**
* 组装融合调度单位人员信息 * 组装融合调度单位人员信息
......
...@@ -14,28 +14,26 @@ import java.util.List; ...@@ -14,28 +14,26 @@ import java.util.List;
@Accessors(chain = true) @Accessors(chain = true)
@ApiModel(value="OrgMenuVo", description="树菜单") @ApiModel(value="OrgMenuVo", description="树菜单")
public class OrgMenuVo { public class OrgMenuVo {
public String key; public Long key;
public String title; public String title;
public Long id;
public Long parentId; public Long parentId;
public boolean leaf = true; public boolean leaf = true;
public List<OrgMenuVo> children; public List<OrgMenuVo> children;
public String bizOrgType; public String bizOrgType;
public OrgMenuVo(String key, String title, Long parentId, String bizOrgType, boolean leaf, Long id) { public OrgMenuVo(Long key, String title, Long parentId, String bizOrgType, boolean leaf) {
super(); super();
this.key = key; this.key = key;
this.title = title; this.title = title;
this.parentId = parentId; this.parentId = parentId;
this.bizOrgType = bizOrgType; this.bizOrgType = bizOrgType;
this.leaf = leaf; this.leaf = leaf;
this.id= id;
} }
public OrgMenuVo(String key, String title, Long parentId, String bizOrgType, Long id) { public OrgMenuVo(Long key, String title, Long parentId, String bizOrgType) {
this.key = key; this.key = key;
this.id = id;
this.title = title; this.title = title;
this.parentId = parentId; this.parentId = parentId;
this.children = children;
this.bizOrgType = bizOrgType; this.bizOrgType = bizOrgType;
} }
......
...@@ -140,7 +140,7 @@ public class OrgUsrController extends BaseController { ...@@ -140,7 +140,7 @@ public class OrgUsrController extends BaseController {
@RequestMapping(value = "/companyTree", method = RequestMethod.GET) @RequestMapping(value = "/companyTree", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "获取单位部门树", notes = "获取单位部门树") @ApiOperation(httpMethod = "GET", value = "获取单位部门树", notes = "获取单位部门树")
public ResponseModel< List<OrgMenuVo>>selectCompanyTree() throws Exception { public ResponseModel< List<OrgMenuVo>>selectCompanyTree() throws Exception {
List<OrgMenuVo> menus = iOrgUsrService.getTree(null, iOrgUsrService.selectCompanyDepartmentMsg(), OrgUsr.class.getName(), "getSequenceNbr", 2, "getBizOrgName", "getParentId", "getBizOrgType", "getBizOrgCode"); List<OrgMenuVo> menus = iOrgUsrService.getTree(null, iOrgUsrService.selectCompanyDepartmentMsg(), OrgUsr.class.getName(), "getSequenceNbr", 2, "getBizOrgName", "getParentId", "getBizOrgType");
return ResponseHelper.buildResponse(menus); return ResponseHelper.buildResponse(menus);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment