|
|
@@ -261,7 +261,7 @@ public class CadastreManageController extends BaseController {
|
|
|
* @return
|
|
|
*/
|
|
|
@GetMapping("/selectTableList")
|
|
|
- public R<List<Map<String,Object>>> selectTableRow( @RequestParam("tableName") String tableName,@RequestParam("geomFlag") String geomFlag,@RequestParam("bsm") String bsm,@RequestParam("ywh") String ywh) {
|
|
|
+ public R<List<Map<String,Object>>> selectTableRow(@RequestParam("tableName") String tableName,@RequestParam("geomFlag") String geomFlag,@RequestParam("bsm") String bsm,@RequestParam("ywh") String ywh) {
|
|
|
try {
|
|
|
List<Map<String, Object>> res = cadastreManageService.selectTableRow(tableName, geomFlag, bsm, ywh);
|
|
|
return R.ok(res);
|
|
|
@@ -271,6 +271,43 @@ public class CadastreManageController extends BaseController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+ @GetMapping("/getTableFields")
|
|
|
+ public R<List<String>> getTableFields(@RequestParam("tableName") String tableName) {
|
|
|
+ try {
|
|
|
+ List<String> res = cadastreManageService.getTableFields(tableName);
|
|
|
+ return R.ok(res);
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ return R.fail(e.getMessage());
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ @GetMapping("/getDistinctValueByField")
|
|
|
+ public R<List<String>> getDistinctValueByField(@RequestParam("tableName") String tableName, @RequestParam("fieldName") String fieldName) {
|
|
|
+ try {
|
|
|
+ List<String> res = cadastreManageService.getDistinctValueByField(tableName, fieldName);
|
|
|
+ return R.ok(res);
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ return R.fail(e.getMessage());
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ @GetMapping("/checkQueryWhere")
|
|
|
+ public R<List<String>> checkQueryWhere(@RequestParam("tableName") String tableName, @RequestParam("queryWhere") String queryWhere) {
|
|
|
+ try {
|
|
|
+ //List<String> res = cadastreManageService.checkQueryWhere(tableName, geomFlag, bsm, ywh);
|
|
|
+ List<String> res = new ArrayList<>();
|
|
|
+ res.add("查询条件合法");
|
|
|
+ return R.ok(res);
|
|
|
+ } catch (Exception e) {
|
|
|
+ return R.fail(e.getMessage());
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* 批量更新
|
|
|
* @param content
|