|
|
@@ -14,6 +14,7 @@ import com.siwei.apply.utils.ServiceFileUtil;
|
|
|
import com.siwei.common.core.domain.R;
|
|
|
import com.siwei.common.core.utils.StringUtils;
|
|
|
import com.siwei.common.core.web.controller.BaseController;
|
|
|
+import com.siwei.common.core.web.page.TableDataInfo;
|
|
|
import org.apache.commons.collections4.CollectionUtils;
|
|
|
import org.gdal.ogr.*;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
@@ -274,8 +275,19 @@ public class CadastreManageController extends BaseController {
|
|
|
* @return
|
|
|
*/
|
|
|
@GetMapping("/selectTableList")
|
|
|
- public R<List<Map<String,Object>>> selectTableRow(@RequestParam("tableName") String tableName,@RequestParam("geomFlag") String geomFlag,@RequestParam(value = "bsm",required = false,defaultValue = "") String bsm, @RequestParam(value = "ywh",required = false,defaultValue = "") String ywh) {
|
|
|
+ public R<?> selectTableRow(@RequestParam("tableName") String tableName,
|
|
|
+ @RequestParam("geomFlag") String geomFlag,
|
|
|
+ @RequestParam(value = "bsm", required = false, defaultValue = "") String bsm,
|
|
|
+ @RequestParam(value = "ywh", required = false, defaultValue = "") String ywh,
|
|
|
+ @RequestParam(value = "pageNum", required = false) Integer pageNum,
|
|
|
+ @RequestParam(value = "pageSize", required = false) Integer pageSize) {
|
|
|
try {
|
|
|
+ if (pageNum != null && pageSize != null) {
|
|
|
+ startPage();
|
|
|
+ List<Map<String, Object>> pageRows = cadastreManageService.selectTableRow(tableName, geomFlag, bsm, ywh, true);
|
|
|
+ TableDataInfo tableDataInfo = getDataTable(pageRows);
|
|
|
+ return R.ok(tableDataInfo);
|
|
|
+ }
|
|
|
List<Map<String, Object>> res = cadastreManageService.selectTableRow(tableName, geomFlag, bsm, ywh);
|
|
|
return R.ok(res);
|
|
|
} catch (Exception e) {
|