|
@@ -5,6 +5,7 @@ import com.ruoyi.system.api.domain.SysDept;
|
|
import com.sooka.sponest.mobile.remoteapi.RemoteSystemBaseService;
|
|
import com.sooka.sponest.mobile.remoteapi.RemoteSystemBaseService;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
+import org.springframework.web.bind.annotation.RequestParam;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
import javax.annotation.Resource;
|
|
@@ -54,4 +55,15 @@ public class DeptController {
|
|
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 根据部门ID和岗位ID查询子节点集合
|
|
|
|
+ * @param deptId
|
|
|
|
+ * @param postId
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ @GetMapping("/getChildren")
|
|
|
|
+ public AjaxResult getChildren(@RequestParam("deptId") String deptId, @RequestParam("postId") String postId) {
|
|
|
|
+ return remoteSystemBaseService.getChildren(deptId, postId);
|
|
|
|
+ }
|
|
}
|
|
}
|