master
面包骑士 2024-08-21 17:22:42 +08:00
parent 4e887e2964
commit 8084e20948
1 changed files with 3 additions and 3 deletions

View File

@ -54,7 +54,7 @@ public class GenController extends BaseController
*/ */
@RequiresPermissions("tool:gen:query") @RequiresPermissions("tool:gen:query")
@GetMapping(value = "/{tableId}") @GetMapping(value = "/{tableId}")
public Result getInfo(@PathVariable Long tableId) public Result getInfo(@PathVariable("tableId") Long tableId)
{ {
GenTable table = genTableService.selectGenTableById(tableId); GenTable table = genTableService.selectGenTableById(tableId);
List<GenTable> tables = genTableService.selectGenTableAll(); List<GenTable> tables = genTableService.selectGenTableAll();
@ -83,7 +83,7 @@ public class GenController extends BaseController
* *
*/ */
@GetMapping(value = "/column/{tableId}") @GetMapping(value = "/column/{tableId}")
public Result columnList(Long tableId) public Result columnList(@PathVariable("tableId") Long tableId)
{ {
TableDataInfo dataInfo = new TableDataInfo(); TableDataInfo dataInfo = new TableDataInfo();
List<GenTableColumn> list = genTableColumnService.selectGenTableColumnListByTableId(tableId); List<GenTableColumn> list = genTableColumnService.selectGenTableColumnListByTableId(tableId);
@ -126,7 +126,7 @@ public class GenController extends BaseController
@RequiresPermissions("tool:gen:remove") @RequiresPermissions("tool:gen:remove")
@Log(title = "代码生成", businessType = BusinessType.DELETE) @Log(title = "代码生成", businessType = BusinessType.DELETE)
@DeleteMapping("/{tableIds}") @DeleteMapping("/{tableIds}")
public Result remove(@PathVariable Long[] tableIds) public Result remove(@PathVariable("tableIds") Long[] tableIds)
{ {
genTableService.deleteGenTableByIds(tableIds); genTableService.deleteGenTableByIds(tableIds);
return success(); return success();