|
@@ -1,8 +1,12 @@
|
|
|
package com.ym.mec.student.controller;
|
|
|
|
|
|
|
|
|
+import com.ym.mec.auth.api.client.SysUserFeignService;
|
|
|
+import com.ym.mec.auth.api.entity.SysUser;
|
|
|
import com.ym.mec.biz.dal.dto.RegisterPayDto;
|
|
|
import com.ym.mec.biz.dal.entity.StudentInstrument;
|
|
|
+import com.ym.mec.biz.dal.page.DegreeQueryInfo;
|
|
|
+import com.ym.mec.biz.dal.page.StudentInstrumentQueryInfo;
|
|
|
import com.ym.mec.common.controller.BaseController;
|
|
|
import com.ym.mec.common.entity.HttpResponseResult;
|
|
|
import com.ym.mec.biz.service.StudentInstrumentService;
|
|
@@ -13,10 +17,8 @@ import io.swagger.annotations.ApiImplicitParam;
|
|
|
import io.swagger.annotations.ApiImplicitParams;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.http.HttpStatus;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
@RequestMapping("studentInstrument")
|
|
|
@Api(tags = "乐器与月保服务")
|
|
@@ -24,11 +26,20 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
public class StudentInstrumentController extends BaseController {
|
|
|
@Autowired
|
|
|
private StudentInstrumentService studentInstrumentService;
|
|
|
+ @Autowired
|
|
|
+ private SysUserFeignService sysUserFeignService;
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "获取乐器与月保列表")
|
|
|
- @PostMapping("/getList")
|
|
|
- public HttpResponseResult<PageInfo<StudentInstrument>> getList(QueryInfo queryInfo) {
|
|
|
+ @GetMapping("/getList")
|
|
|
+ public HttpResponseResult<PageInfo<StudentInstrument>> getList(StudentInstrumentQueryInfo queryInfo) {
|
|
|
+// SysUser user = sysUserFeignService.queryUserInfo();
|
|
|
+// if(user == null || user.getId()==null){
|
|
|
+// return failed(HttpStatus.FORBIDDEN,"请登录");
|
|
|
+// }
|
|
|
+// queryInfo.setStudentId(user.getId());
|
|
|
+ queryInfo.setStudentId(2111835);
|
|
|
+
|
|
|
return succeed(studentInstrumentService.queryPage(queryInfo));
|
|
|
}
|
|
|
|