|
|
@@ -4,13 +4,12 @@ import com.siwei.apply.domain.FzssFxrwrz;
|
|
|
import com.siwei.apply.domain.LayerAndDbData;
|
|
|
import com.siwei.apply.domain.MdbAndDbData;
|
|
|
import com.siwei.apply.domain.RowUpdateContent;
|
|
|
-import com.siwei.apply.domain.vo.CadastreFileFilterVo;
|
|
|
-import com.siwei.apply.domain.vo.CheckInfoResultVo;
|
|
|
-import com.siwei.apply.domain.vo.CompareResultVo;
|
|
|
-import com.siwei.apply.domain.vo.IdsVo;
|
|
|
+import com.siwei.apply.domain.vo.*;
|
|
|
import com.siwei.apply.service.cadastre.CadastreManageService;
|
|
|
import com.siwei.apply.service.cadastre.impl.FzssFxrwrzHandleService;
|
|
|
import com.siwei.common.core.domain.R;
|
|
|
+import com.siwei.common.core.utils.bean.BeanUtils;
|
|
|
+import com.siwei.common.core.utils.poi.ExcelUtil;
|
|
|
import com.siwei.common.core.web.controller.BaseController;
|
|
|
import org.gdal.ogr.*;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
@@ -21,6 +20,7 @@ import org.springframework.http.MediaType;
|
|
|
import org.springframework.core.io.Resource;
|
|
|
import org.springframework.core.io.ByteArrayResource;
|
|
|
|
|
|
+import javax.servlet.http.HttpServletResponse;
|
|
|
import java.util.*;
|
|
|
import java.net.URLEncoder;
|
|
|
import java.nio.charset.StandardCharsets;
|
|
|
@@ -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(value = "bsm",required = false,defaultValue = "1=1") String bsm, @RequestParam(value = "ywh",required = false,defaultValue = "1=1") String ywh) {
|
|
|
+ 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) {
|
|
|
try {
|
|
|
List<Map<String, Object>> res = cadastreManageService.selectTableRow(tableName, geomFlag, bsm, ywh);
|
|
|
return R.ok(res);
|
|
|
@@ -336,6 +336,22 @@ public class CadastreManageController extends BaseController {
|
|
|
}
|
|
|
|
|
|
|
|
|
+ @PostMapping("/export")
|
|
|
+ public void exportList(HttpServletResponse response, RowUpdateContent content) {
|
|
|
+ try {
|
|
|
+// YdbpDataFilterVo filterVo = new YdbpDataFilterVo();
|
|
|
+// BeanUtils.copyProperties(ydbpExcelVo, filterVo);
|
|
|
+// Map<String, Object> result = ydbpDataService.getList(filterVo);
|
|
|
+// List<YdbpExcelVo> list = ydbpDataService.transformation(result);
|
|
|
+ //ExcelUtil<YdbpExcelVo> util = new ExcelUtil<>(YdbpExcelVo.class);
|
|
|
+
|
|
|
+// ExcelUtil<Map<String,Object>> util = new ExcelUtil<Map>(Map.class);
|
|
|
+// util.exportExcel(response, list, "报批数据");
|
|
|
+
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|