修改BUG
Showing
2 changed files
with
2 additions
and
2 deletions
| ... | @@ -50,7 +50,7 @@ public class BuildingBlockController extends BaseController { | ... | @@ -50,7 +50,7 @@ public class BuildingBlockController extends BaseController { |
| 50 | * @return | 50 | * @return |
| 51 | */ | 51 | */ |
| 52 | @GetMapping("/getById/{id}") | 52 | @GetMapping("/getById/{id}") |
| 53 | public R<BuildingBlockVo> getById(@RequestParam("id") String id) { | 53 | public R<BuildingBlockVo> getById(@PathVariable String id) { |
| 54 | return R.ok(service.get(id)); | 54 | return R.ok(service.get(id)); |
| 55 | } | 55 | } |
| 56 | 56 | ... | ... |
| ... | @@ -50,7 +50,7 @@ public class CourseController extends BaseController { | ... | @@ -50,7 +50,7 @@ public class CourseController extends BaseController { |
| 50 | * @return | 50 | * @return |
| 51 | */ | 51 | */ |
| 52 | @GetMapping("/list/{buildingBlockId}") | 52 | @GetMapping("/list/{buildingBlockId}") |
| 53 | public R<List<CourseVo>> list(@PathVariable String buildingBlockId) { | 53 | public R<List<CourseVo>> list(@PathVariable("buildingBlockId") String buildingBlockId) { |
| 54 | return R.ok(service.list(buildingBlockId)); | 54 | return R.ok(service.list(buildingBlockId)); |
| 55 | } | 55 | } |
| 56 | 56 | ... | ... |
-
Please register or sign in to post a comment