diff --git a/renren-admin/src/main/java/io/renren/modules/demanData/controller/TDemandDataController.java b/renren-admin/src/main/java/io/renren/modules/demanData/controller/TDemandDataController.java index f0a1bd95..5d930337 100644 --- a/renren-admin/src/main/java/io/renren/modules/demanData/controller/TDemandDataController.java +++ b/renren-admin/src/main/java/io/renren/modules/demanData/controller/TDemandDataController.java @@ -33,13 +33,13 @@ import java.util.Map; * @since 1.0 2022-04-25 */ @RestController -@RequestMapping("demanData/tdemanddata") +@RequestMapping("demanData") @Api(tags = "能力需求评审主体") public class TDemandDataController { @Autowired private TDemandDataService tDemandDataService; - @GetMapping("page") + @GetMapping("/page") @ApiOperation("分页") @ApiImplicitParams({ @ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType = "int"), @@ -55,7 +55,7 @@ public class TDemandDataController { return new Result>().ok(page); } - @GetMapping("{id}") + @GetMapping("/{id}") @ApiOperation("信息") // @RequiresPermissions("demanData:tdemanddata:info") public Result get(@PathVariable("id") Long id) { @@ -103,7 +103,7 @@ public class TDemandDataController { return new Result(); } - @GetMapping("export") + @GetMapping("/export") @ApiOperation("导出") @LogOperation("导出") // @RequiresPermissions("demanData:tdemanddata:export") diff --git a/renren-admin/src/main/java/io/renren/modules/demanData/service/impl/TDemandDataServiceImpl.java b/renren-admin/src/main/java/io/renren/modules/demanData/service/impl/TDemandDataServiceImpl.java index 6e24b21c..ec3152c9 100644 --- a/renren-admin/src/main/java/io/renren/modules/demanData/service/impl/TDemandDataServiceImpl.java +++ b/renren-admin/src/main/java/io/renren/modules/demanData/service/impl/TDemandDataServiceImpl.java @@ -37,10 +37,11 @@ public class TDemandDataServiceImpl extends CrudServiceImpl>().ok(page); } - @GetMapping("{id}") + @GetMapping("/{id}") @ApiOperation("信息") // @RequiresPermissions("resourceMountApply:tresourcemountapply:info") public Result get(@PathVariable("id") Long id) { @@ -106,7 +106,7 @@ public class TResourceMountApplyController { return new Result(); } - @GetMapping("export") + @GetMapping("/export") @ApiOperation("导出") @LogOperation("导出") // @RequiresPermissions("resourceMountApply:tresourcemountapply:export")