导出单片材料

dongdingding
杜函宇 2 weeks ago
parent 0261d44802
commit 86275b8b9f

@ -345,12 +345,12 @@ public class BasicInformationController extends BaseController {
@ApiOperation(value = "导出单片材料") @ApiOperation(value = "导出单片材料")
@PostMapping("/wordExport") @PostMapping("/wordExport")
public void wordExport(HttpServletResponse response, @RequestBody List<Long> ids) throws Exception { public void wordExport(HttpServletResponse response, @RequestParam String ids) throws Exception {
List<SysDictData> sysDictData = sysDictDataMapper.selectDictDataList(new SysDictData()); List<SysDictData> sysDictData = sysDictDataMapper.selectDictDataList(new SysDictData());
String fatherFile = fileAddress + "/项目压缩文件"; String fatherFile = fileAddress + "/项目压缩文件";
FileUtil.mkdir(fatherFile); FileUtil.mkdir(fatherFile);
for (long id : ids) { for (String id : ids.split(",")) {
BasicInformationResponse a1 = basicInformationService.selectOne(id); BasicInformationResponse a1 = basicInformationService.selectOne(Long.valueOf(id));
Map<String, Object> map = new HashMap<>(); Map<String, Object> map = new HashMap<>();
map.put("issuingTime", a1.getBasicInformation().getIssuingTime() != null ? a1.getBasicInformation().getIssuingTime() : "/"); map.put("issuingTime", a1.getBasicInformation().getIssuingTime() != null ? a1.getBasicInformation().getIssuingTime() : "/");
map.put("jsjd", a1.getBasicInformation().getJsjd() != null ? a1.getBasicInformation().getJsjd() : "/"); map.put("jsjd", a1.getBasicInformation().getJsjd() != null ? a1.getBasicInformation().getJsjd() : "/");

Loading…
Cancel
Save