Browse Source

教务端支持考勤审核

zouxuan 4 năm trước cách đây
mục cha
commit
d4777b14a4

+ 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());
+    }
+}