|
@@ -192,6 +192,31 @@ public class SysDeptController extends BaseController
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * 数据申请选择部门树
|
|
|
+ *
|
|
|
+ * @param deptId 部门ID
|
|
|
+ * @param shareType 共享类型
|
|
|
+ */
|
|
|
+ @GetMapping(value = {"/selectDeptDataTreeByShareType/{deptId}/{shareType}" })
|
|
|
+ public String selectDeptDataTreeByShareType(@PathVariable("deptId") Long deptId,
|
|
|
+ @PathVariable(value = "shareType", required = false) String shareType, ModelMap mmap)
|
|
|
+ {
|
|
|
+ mmap.put("dept", deptService.selectDeptById(deptId));
|
|
|
+ mmap.put("shareType", shareType);
|
|
|
+ return "applyData/record" + "/provideDeptTree";
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * 数据申请加载部门列表树
|
|
|
+ */
|
|
|
+ @GetMapping("/provideDeptDataTreeData/{shareType}")
|
|
|
+ @ResponseBody
|
|
|
+ public List<Ztree> provideDeptDataTreeData(@PathVariable(value = "shareType", required = false) String shareType)
|
|
|
+ {
|
|
|
+ List<Ztree> ztrees = deptService.selectProvideDeptDataTree(shareType);
|
|
|
+ return ztrees;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
* 加载部门列表树
|
|
|
*/
|
|
|
@GetMapping("/treeData")
|