|
@@ -1,5 +1,6 @@
|
|
package com.sooka.system.controller;
|
|
package com.sooka.system.controller;
|
|
|
|
|
|
|
|
+import java.util.ArrayList;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
import java.util.stream.Collectors;
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
@@ -11,6 +12,8 @@ import com.sooka.common.core.page.TableDataInfo;
|
|
import com.sooka.common.enums.BusinessType;
|
|
import com.sooka.common.enums.BusinessType;
|
|
import com.sooka.common.utils.poi.ExcelUtil;
|
|
import com.sooka.common.utils.poi.ExcelUtil;
|
|
import com.sooka.system.domain.*;
|
|
import com.sooka.system.domain.*;
|
|
|
|
+import com.sooka.system.mapper.SysMenuMapper;
|
|
|
|
+import com.sooka.system.service.ISysMenuService;
|
|
import com.sooka.system.service.ITUParamsbusinessService;
|
|
import com.sooka.system.service.ITUParamsbusinessService;
|
|
import com.sooka.system.service.ITUParamspublicService;
|
|
import com.sooka.system.service.ITUParamspublicService;
|
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
|
@@ -44,6 +47,8 @@ public class TUInterfaceinfoController extends BaseController {
|
|
private ITUParamsbusinessService ituParamsbusinessService;
|
|
private ITUParamsbusinessService ituParamsbusinessService;
|
|
@Resource
|
|
@Resource
|
|
private ITUParamspublicService ituParamspublicService;
|
|
private ITUParamspublicService ituParamspublicService;
|
|
|
|
+ @Resource
|
|
|
|
+ private SysMenuMapper menuMapper;
|
|
|
|
|
|
@RequiresPermissions("system:interfaceinfo:view")
|
|
@RequiresPermissions("system:interfaceinfo:view")
|
|
@GetMapping("/{shareType}")
|
|
@GetMapping("/{shareType}")
|
|
@@ -66,7 +71,7 @@ public class TUInterfaceinfoController extends BaseController {
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * 根据部门ID获取接口
|
|
|
|
|
|
+ * 根据部门ID获取接口应用
|
|
*/
|
|
*/
|
|
@GetMapping("/selectInterfaceByDeptId/{deptId}/{shareType1}/{shareType3}")
|
|
@GetMapping("/selectInterfaceByDeptId/{deptId}/{shareType1}/{shareType3}")
|
|
public String selectInterfaceByDeptId(@PathVariable("deptId") String deptId,
|
|
public String selectInterfaceByDeptId(@PathVariable("deptId") String deptId,
|
|
@@ -87,6 +92,24 @@ public class TUInterfaceinfoController extends BaseController {
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
|
|
+ * 根据部门ID获取数据应用
|
|
|
|
+ */
|
|
|
|
+ @GetMapping("/selectDataByDeptId/{deptId}")
|
|
|
|
+ public String selectDataByDeptId(@PathVariable("deptId") Long deptId, ModelMap mmap)
|
|
|
|
+ {
|
|
|
|
+ startPage();
|
|
|
|
+ List<SysMenu> menuList = menuMapper.selectMenuListByParentId(deptId);
|
|
|
|
+ List<TUInterfaceinfo> list = new ArrayList();
|
|
|
|
+ for (int i = 0; i < menuList.size(); i++) {
|
|
|
|
+ TUInterfaceinfo tuInterfaceinfo = new TUInterfaceinfo();
|
|
|
|
+ tuInterfaceinfo.setInterfaceName(menuList.get(i).getMenuName());
|
|
|
|
+ list.add(tuInterfaceinfo);
|
|
|
|
+ }
|
|
|
|
+ mmap.put("list", list.stream().collect(Collectors.toList()));
|
|
|
|
+ return prefix + "/selectData";
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
* 根据部门ID获取接口
|
|
* 根据部门ID获取接口
|
|
*/
|
|
*/
|
|
@RequestMapping("/selectInterfaceByIds")
|
|
@RequestMapping("/selectInterfaceByIds")
|