Package net.risesoft.controller.form
Class TableRestController
- java.lang.Object
-
- net.risesoft.controller.form.TableRestController
-
@RestController @RequestMapping(value="/vue/y9form/table", produces="application/json") public class TableRestController extends Object- Author:
- qinman, zhangchongjie
- Date:
- 2022/12/20
-
-
Constructor Summary
Constructors Constructor Description TableRestController(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate4Tenant, Y9TableService y9TableService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description net.risesoft.pojo.Y9Result<Object>addDataBaseTable(String tableName, String systemName, String systemCnName)添加数据库表net.risesoft.pojo.Y9Result<Object>buildTable(String tables, String fields)新生成表,创建数据库表net.risesoft.pojo.Y9Result<String>checkTableExist(String tableName)数据库是否存在该表net.risesoft.pojo.Y9Result<Map<String,Object>>getAllTables(String name)获取数据库表net.risesoft.pojo.Y9Result<List<Map<String,Object>>>getAppList()获取app分类net.risesoft.pojo.Y9Page<Y9Table>getTables(String systemName, int page, int rows)获取业务表列表net.risesoft.pojo.Y9Result<Map<String,Object>>newOrModifyTable(String id)获取新增或修改表数据net.risesoft.pojo.Y9Result<Object>removeTable(String ids)删除业务表net.risesoft.pojo.Y9Result<Object>saveTable(String tables, String fields)保存业务表net.risesoft.pojo.Y9Result<Object>updateTable(String tables, String fields)修改表结构,增加字段
-
-
-
Constructor Detail
-
TableRestController
public TableRestController(@Qualifier("jdbcTemplate4Tenant") org.springframework.jdbc.core.JdbcTemplate jdbcTemplate4Tenant, Y9TableService y9TableService)
-
-
Method Detail
-
addDataBaseTable
@PostMapping("/addDataBaseTable") public net.risesoft.pojo.Y9Result<Object> addDataBaseTable(@RequestParam String tableName, @RequestParam String systemName, @RequestParam String systemCnName)添加数据库表- Parameters:
tableName- 表名称systemName- 系统名称systemCnName- 系统中文名称- Returns:
-
buildTable
@PostMapping("/buildTable") public net.risesoft.pojo.Y9Result<Object> buildTable(@RequestParam String tables, @RequestParam String fields)新生成表,创建数据库表- Parameters:
tables- 表信息fields- 字段信息- Returns:
-
checkTableExist
@GetMapping("/checkTableExist") public net.risesoft.pojo.Y9Result<String> checkTableExist(@RequestParam String tableName)数据库是否存在该表- Parameters:
tableName- 表名- Returns:
-
getAllTables
@GetMapping("/getAllTables") public net.risesoft.pojo.Y9Result<Map<String,Object>> getAllTables(@RequestParam(required=false) String name)获取数据库表- Parameters:
name- 表名- Returns:
-
getAppList
@GetMapping("/getAppList") public net.risesoft.pojo.Y9Result<List<Map<String,Object>>> getAppList()获取app分类- Returns:
-
getTables
@GetMapping("/getTables") public net.risesoft.pojo.Y9Page<Y9Table> getTables(@RequestParam(required=false) String systemName, @RequestParam int page, @RequestParam int rows)获取业务表列表- Parameters:
systemName- 应用名称page- 页码rows- 条数- Returns:
-
newOrModifyTable
@GetMapping("/newOrModifyTable") public net.risesoft.pojo.Y9Result<Map<String,Object>> newOrModifyTable(@RequestParam(required=false) String id)获取新增或修改表数据- Parameters:
id- 表id- Returns:
-
removeTable
@PostMapping("/removeTable") public net.risesoft.pojo.Y9Result<Object> removeTable(@RequestParam String ids)删除业务表- Parameters:
ids- 表ids- Returns:
-
saveTable
@PostMapping("/saveTable") public net.risesoft.pojo.Y9Result<Object> saveTable(@RequestParam(required=false) String tables, @RequestParam(required=false) String fields)保存业务表- Parameters:
tables- 表信息fields- 字段信息- Returns:
-
-