自动生成代码中的修改代码生成,无用代码删除
This commit is contained in:
parent
4b59c590e0
commit
8d9d9caf77
|
|
@ -130,24 +130,7 @@ public class GenController extends BaseController
|
||||||
public String edit(@PathVariable("tableId") Long tableId, ModelMap mmap)
|
public String edit(@PathVariable("tableId") Long tableId, ModelMap mmap)
|
||||||
{
|
{
|
||||||
GenTable table = genTableService.selectGenTableById(tableId);
|
GenTable table = genTableService.selectGenTableById(tableId);
|
||||||
List<GenTable> genTables = genTableService.selectGenTableAll();
|
|
||||||
List<CxSelect> cxSelect = new ArrayList<CxSelect>();
|
|
||||||
for (GenTable genTable : genTables)
|
|
||||||
{
|
|
||||||
if (!StringUtils.equals(table.getTableName(), genTable.getTableName()))
|
|
||||||
{
|
|
||||||
CxSelect cxTable = new CxSelect(genTable.getTableName(), genTable.getTableName() + ':' + genTable.getTableComment());
|
|
||||||
List<CxSelect> cxColumns = new ArrayList<CxSelect>();
|
|
||||||
for (GenTableColumn tableColumn : genTable.getColumns())
|
|
||||||
{
|
|
||||||
cxColumns.add(new CxSelect(tableColumn.getColumnName(), tableColumn.getColumnName() + ':' + tableColumn.getColumnComment()));
|
|
||||||
}
|
|
||||||
cxTable.setS(cxColumns);
|
|
||||||
cxSelect.add(cxTable);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
mmap.put("table", table);
|
mmap.put("table", table);
|
||||||
mmap.put("data", JSON.toJSON(cxSelect));
|
|
||||||
return prefix + "/edit";
|
return prefix + "/edit";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue