소스 검색

教务端支持考勤审核

zouxuan 4 년 전
부모
커밋
d4777b14a4
1개의 변경된 파일24개의 추가작업 그리고 0개의 파일을 삭제
  1. 24 0
      mec-web/src/main/java/com/ym/mec/web/controller/education/OrganizationController.java

+ 24 - 0
mec-web/src/main/java/com/ym/mec/web/controller/education/OrganizationController.java

@@ -0,0 +1,24 @@
+package com.ym.mec.web.controller.education;
+
+import com.ym.mec.biz.service.OrganizationService;
+import com.ym.mec.common.controller.BaseController;
+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.*;
+
+@RequestMapping("organization")
+@Api(tags = "分部服务")
+@RestController
+public class OrganizationController extends BaseController {
+
+    @Autowired
+    private OrganizationService organizationService;
+
+    @ApiOperation(value = "获取员工所在分部列表")
+    @GetMapping("/queryEmployeeOrgan")
+    public Object queryEmployeeOrgan() throws Exception {
+        return succeed(organizationService.queryEmployeeOrgan());
+    }
+}