|
@@ -1,14 +1,18 @@
|
|
|
package com.ym.mec.web.controller.education;
|
|
|
|
|
|
+import com.ym.mec.biz.dal.entity.CooperationOrgan;
|
|
|
import com.ym.mec.biz.service.CooperationOrganService;
|
|
|
import com.ym.mec.biz.service.OrganizationService;
|
|
|
import com.ym.mec.common.controller.BaseController;
|
|
|
+import com.ym.mec.common.entity.HttpResponseResult;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
@RequestMapping("eduOrganization")
|
|
|
@Api(tags = "分部服务")
|
|
|
@RestController
|
|
@@ -26,8 +30,8 @@ public class EduOrganizationController extends BaseController {
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "根据分部id获取合作单位(学校)列表")
|
|
|
- @GetMapping("/queryByOrganId")
|
|
|
- public Object queryByOrganId(String organId) {
|
|
|
+ @GetMapping("/getOrganCooperation")
|
|
|
+ public HttpResponseResult<List<CooperationOrgan>> getOrganCooperation(String organId) {
|
|
|
return succeed(cooperationOrganService.queryByOrganId(organId));
|
|
|
}
|
|
|
}
|