|
|
@ -55,11 +55,11 @@ public class GenController extends BaseController {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@ApiOperation("修改代码生成业务")
|
|
|
|
@ApiOperation("修改代码生成业务")
|
|
|
|
@SaCheckPermission("tool:gen:query")
|
|
|
|
@SaCheckPermission("tool:gen:query")
|
|
|
|
@GetMapping(value = "/{talbleId}")
|
|
|
|
@GetMapping(value = "/{tableId}")
|
|
|
|
public R<Map<String, Object>> getInfo(@PathVariable Long talbleId) {
|
|
|
|
public R<Map<String, Object>> getInfo(@PathVariable Long tableId) {
|
|
|
|
GenTable table = genTableService.selectGenTableById(talbleId);
|
|
|
|
GenTable table = genTableService.selectGenTableById(tableId);
|
|
|
|
List<GenTable> tables = genTableService.selectGenTableAll();
|
|
|
|
List<GenTable> tables = genTableService.selectGenTableAll();
|
|
|
|
List<GenTableColumn> list = genTableColumnService.selectGenTableColumnListByTableId(talbleId);
|
|
|
|
List<GenTableColumn> list = genTableColumnService.selectGenTableColumnListByTableId(tableId);
|
|
|
|
Map<String, Object> map = new HashMap<String, Object>();
|
|
|
|
Map<String, Object> map = new HashMap<String, Object>();
|
|
|
|
map.put("info", table);
|
|
|
|
map.put("info", table);
|
|
|
|
map.put("rows", list);
|
|
|
|
map.put("rows", list);
|
|
|
|