|
@@ -7,6 +7,7 @@ import com.siwei.apply.domain.vo.YdbpDataVo;
|
|
|
import com.siwei.apply.domain.vo.YdbpExcelVo;
|
|
|
import com.siwei.apply.service.YdbpDataService;
|
|
|
import com.siwei.common.core.domain.R;
|
|
|
+import com.siwei.common.core.utils.bean.BeanUtils;
|
|
|
import com.siwei.common.core.utils.poi.ExcelUtil;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
@@ -89,12 +90,14 @@ public class YdbpDataController {
|
|
|
/**
|
|
|
* 用地报批数据导出
|
|
|
*
|
|
|
- * @param filterVo
|
|
|
+ * @param ydbpExcelVo
|
|
|
* @return
|
|
|
*/
|
|
|
@PostMapping("/export")
|
|
|
- public void exportList(HttpServletResponse response, @RequestBody YdbpDataFilterVo filterVo) {
|
|
|
+ public void exportList(HttpServletResponse response, YdbpExcelVo ydbpExcelVo) {
|
|
|
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);
|