chenendian пре 1 недеља
родитељ
комит
81ce580037

+ 28 - 0
siwei-modules/siwei-apply/src/main/java/com/siwei/apply/controller/cadastre/CadastreManageController.java

@@ -287,6 +287,34 @@ public class CadastreManageController extends BaseController {
     }
 
 
+
+
+    @GetMapping("/selectTableList2")
+    public R<List<Map<String,Object>>> selectTableRow2(@RequestParam("tableName") String tableName,@RequestParam("geomFlag") String geomFlag,
+                                                       @RequestParam(value = "zddm",required = false,defaultValue = "") String zddm,
+                                                       @RequestParam(value = "bdcdyh",required = false,defaultValue = "") String bdcdyh,
+                                                       @RequestParam(value = "bsm",required = false,defaultValue = "") String bsm,
+                                                       @RequestParam(value = "ywh",required = false,defaultValue = "") String ywh) {
+        try {
+            if(StringUtils.isBlank(ywh)){
+                ywh +=  " 1=1 ";
+            }
+            if(StringUtils.isNotBlank(zddm)){
+                ywh +=  " AND zddm like '%" + zddm + "%'";
+            }
+            if(StringUtils.isNotBlank(bdcdyh)){
+                ywh +=  " AND bdcdyh like '%" + bdcdyh + "%'";
+            }
+            List<Map<String, Object>> res = cadastreManageService.selectTableRow(tableName, geomFlag, bsm, ywh);
+            return R.ok(res);
+        } catch (Exception e) {
+            e.printStackTrace();
+            return R.fail(e.getMessage());
+        }
+    }
+
+
+
     @GetMapping("/getTableFields")
     public R<List<String>> getTableFields(@RequestParam("tableName") String tableName) {
         try {