|
@@ -147,6 +147,27 @@ public class OfficeController {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * 获取机构JSON数据(评估,会计,项目)。
|
|
|
+ *
|
|
|
+ * @param extId 排除的ID
|
|
|
+ * @param type 类型(1:公司;2:部门)
|
|
|
+ * @param showAll 是否显示不可用数据 1 显示 0 隐藏
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @ApiLog("获取部门数据(评估,会计,项目)")
|
|
|
+ @GetMapping("treeDataPgAndKjAndXm")
|
|
|
+ public ResponseEntity <List <OfficeDTO>> treeDataPgAndKjAndXm(@RequestParam(required = false) String tenantId,
|
|
|
+ @RequestParam(required = false) String parentId,
|
|
|
+ @RequestParam(required = false) String extId,
|
|
|
+ @RequestParam(required = false) String type,
|
|
|
+ @RequestParam(required = false, defaultValue = CommonConstants.NO) String showAll) {
|
|
|
+ List <OfficeDTO> list = officeService.treeDataPgAndKjAndXm ( tenantId, parentId );
|
|
|
+ //List <OfficeDTO> rootTree = officeService.getRootTree (list, extId, type, showAll,"1" );
|
|
|
+ List <OfficeDTO> rootTree = officeService.getOldRootTree (parentId,list, extId, type, showAll );
|
|
|
+ return ResponseEntity.ok ( rootTree );
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
* 获取机构JSON数据。
|
|
|
*
|
|
|
* @param extId 排除的ID
|