|
|
|
@ -111,6 +111,8 @@ public class TablexController extends JeecgController<Tablex, ITablexService> { |
|
|
|
|
tablex.setVerison(1); |
|
|
|
|
tablex.setTableStructure("CREATE TABLE '"+tablex.getTableEnName()+"' ();"); |
|
|
|
|
tablexService.save(tablex); |
|
|
|
|
System.err.println(tablex.toString()); |
|
|
|
|
modulexService.setmodule(tablex.getId(),tablex.getModuleId()); |
|
|
|
|
return Result.OK("添加成功!"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -158,7 +160,7 @@ public class TablexController extends JeecgController<Tablex, ITablexService> { |
|
|
|
|
if (!fieldxList1.isEmpty()){ |
|
|
|
|
return Result.error("该表已被关联,不能删除"); |
|
|
|
|
} |
|
|
|
|
// tablexService.removeById(id);
|
|
|
|
|
tablexService.removeById(id); |
|
|
|
|
return Result.OK("删除成功!"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|