|
@@ -0,0 +1,28 @@
|
|
|
|
+package com.sooka.sponest.mobile.system.dept;
|
|
|
|
+
|
|
|
|
+import com.ruoyi.common.core.web.domain.AjaxResult;
|
|
|
|
+import com.ruoyi.system.api.domain.SysDept;
|
|
|
|
+import com.sooka.sponest.mobile.remoteapi.RemoteSystemBaseService;
|
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
|
+
|
|
|
|
+import javax.annotation.Resource;
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * @Author LG
|
|
|
|
+ * @Date 2023/10/11 - 9:57
|
|
|
|
+ */
|
|
|
|
+@RestController
|
|
|
|
+@RequestMapping("/dept")
|
|
|
|
+public class DeptController {
|
|
|
|
+
|
|
|
|
+ @Resource
|
|
|
|
+ RemoteSystemBaseService remoteSystemBaseService;
|
|
|
|
+
|
|
|
|
+ @GetMapping("/userDeptSelectIncludeChildren")
|
|
|
|
+ public AjaxResult getUserList(SysDept sysDept) {
|
|
|
|
+ AjaxResult deptList = remoteSystemBaseService.userDeptSelectIncludeChildren(String.valueOf(sysDept.getDeptId()));
|
|
|
|
+ return AjaxResult.success(deptList.get("data"));
|
|
|
|
+ }
|
|
|
|
+}
|