Kaynağa Gözat

fengji 'tenantId'

yanite 3 yıl önce
ebeveyn
işleme
ec3f39c976

+ 37 - 0
mec-student/src/main/java/com/ym/mec/student/controller/TenantInfoController.java

@@ -0,0 +1,37 @@
+package com.ym.mec.student.controller;
+
+import com.ym.mec.biz.service.TenantInfoService;
+import com.ym.mec.common.controller.BaseController;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import io.swagger.annotations.ApiParam;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ * @author hgw
+ * Created by 2021-12-07
+ */
+@RequestMapping("/tenantInfo")
+@Api(tags = "机构管理")
+@RestController
+public class TenantInfoController extends BaseController {
+
+    @Autowired
+    private TenantInfoService tenantInfoService;
+
+    @ApiOperation("查询单个机构详情")
+    @GetMapping(value = "/info/{id}")
+    public Object queryTenantInfo(@ApiParam(value = "机构ID", required = true) @PathVariable("id") Integer id) {
+        return succeed(tenantInfoService.queryTenantInfo(id));
+    }
+
+    @ApiOperation("查询单个机构详情")
+    @GetMapping(value = "/checkInfo/{id}")
+    public Object queryTenantInfoCheck(@ApiParam(value = "机构ID", required = true) @PathVariable("id") Integer id) {
+        return succeed(tenantInfoService.queryTenantInfoCheck(id));
+    }
+}

+ 40 - 0
mec-teacher/src/main/java/com/ym/mec/teacher/controller/TenantInfoController.java

@@ -0,0 +1,40 @@
+package com.ym.mec.teacher.controller;
+
+import com.ym.mec.biz.dal.dto.TenantInfoDto;
+import com.ym.mec.biz.service.TenantInfoService;
+import com.ym.mec.common.controller.BaseController;
+import com.ym.mec.thirdparty.yqpay.Msg;
+import com.ym.mec.util.validator.ValidationKit;
+import io.swagger.annotations.*;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.validation.BindingResult;
+import org.springframework.web.bind.annotation.*;
+
+import javax.validation.Valid;
+import java.util.Map;
+
+/**
+ * @author hgw
+ * Created by 2021-12-07
+ */
+@RequestMapping("/tenantInfo")
+@Api(tags = "机构管理")
+@RestController
+public class TenantInfoController extends BaseController {
+
+    @Autowired
+    private TenantInfoService tenantInfoService;
+
+    @ApiOperation("查询单个机构详情")
+    @GetMapping(value = "/info/{id}")
+    public Object queryTenantInfo(@ApiParam(value = "机构ID", required = true) @PathVariable("id") Integer id) {
+        return succeed(tenantInfoService.queryTenantInfo(id));
+    }
+
+    @ApiOperation("查询单个机构详情")
+    @GetMapping(value = "/checkInfo/{id}")
+    public Object queryTenantInfoCheck(@ApiParam(value = "机构ID", required = true) @PathVariable("id") Integer id) {
+        return succeed(tenantInfoService.queryTenantInfoCheck(id));
+    }
+}