|
|
|
@ -152,6 +152,9 @@ public class FieldxController extends JeecgController<Fieldx, IFieldxService> { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
fieldxService.save(fieldx); |
|
|
|
|
// 更新table版本
|
|
|
|
|
Tablex tablex = tablexService.getById(fieldx.getTableId()); |
|
|
|
|
tablexService.updateVersion(fieldx.getTableId(),tablex.getVerison()+1); |
|
|
|
|
tablexService.updateSql(fieldx.getTableId(),createSql(fieldx.getTableId())); |
|
|
|
|
return Result.OK("添加成功!"); |
|
|
|
|
} |
|
|
|
@ -205,6 +208,9 @@ public class FieldxController extends JeecgController<Fieldx, IFieldxService> { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
fieldxService.updateById(fieldx); |
|
|
|
|
// 更新table版本
|
|
|
|
|
Tablex tablex = tablexService.getById(fieldx.getTableId()); |
|
|
|
|
tablexService.updateVersion(fieldx.getTableId(),tablex.getVerison()+1); |
|
|
|
|
tablexService.updateSql(fieldx.getTableId(),createSql(fieldx.getTableId())); |
|
|
|
|
return Result.OK("编辑成功!"); |
|
|
|
|
} |
|
|
|
|