|
@@ -3,10 +3,7 @@ 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.RequestParam;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
import java.util.ArrayList;
|
|
@@ -66,4 +63,15 @@ public class DeptController {
|
|
|
public AjaxResult getChildren(@RequestParam("deptId") String deptId, @RequestParam("postId") String postId) {
|
|
|
return remoteSystemBaseService.getChildren(deptId, postId);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询所属开发区
|
|
|
+ * @param sysDept
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @PostMapping("/getDeptsByDeptType")
|
|
|
+ public AjaxResult getDeptsByDeptType(@RequestBody SysDept sysDept){
|
|
|
+ sysDept.setDeptType("sys_dept_type_27");
|
|
|
+ return remoteSystemBaseService.getDeptsByDeptType(sysDept);
|
|
|
+ }
|
|
|
}
|