|
@@ -1,8 +1,12 @@
|
|
|
package com.ym.mec.web.controller;
|
|
|
|
|
|
+import com.ym.mec.auth.api.client.SysUserFeignService;
|
|
|
+import com.ym.mec.auth.api.entity.SysUser;
|
|
|
+import com.ym.mec.biz.dal.page.ReplacementInstrumentQueryInfo;
|
|
|
import com.ym.mec.biz.service.ReplacementInstrumentService;
|
|
|
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.web.bind.annotation.*;
|
|
|
|
|
@@ -13,5 +17,17 @@ public class ReplacementInstrumentController extends BaseController {
|
|
|
|
|
|
@Autowired
|
|
|
private ReplacementInstrumentService replacementInstrumentService;
|
|
|
+ @Autowired
|
|
|
+ private SysUserFeignService sysUserFeignService;
|
|
|
+
|
|
|
+ @ApiOperation(value = "分页查询列表")
|
|
|
+ @GetMapping("/queryPage")
|
|
|
+ public Object queryPage(ReplacementInstrumentQueryInfo queryInfo) {
|
|
|
+ SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
+ if (sysUser == null) {
|
|
|
+ return failed("用户信息获取失败");
|
|
|
+ }
|
|
|
+ return succeed(replacementInstrumentService.queryPage(queryInfo));
|
|
|
+ }
|
|
|
|
|
|
}
|