|
@@ -8,6 +8,7 @@ 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("replacementInstrument")
|
|
@@ -22,6 +23,7 @@ public class ReplacementInstrumentController extends BaseController {
|
|
|
|
|
|
@ApiOperation(value = "分页查询列表")
|
|
|
@GetMapping("/queryPage")
|
|
|
+ @PreAuthorize("@pcs.hasPermissions('replacementInstrument/queryPage')")
|
|
|
public Object queryPage(ReplacementInstrumentQueryInfo queryInfo) {
|
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
if (sysUser == null) {
|