|
|
|
@ -345,12 +345,12 @@ public class BasicInformationController extends BaseController {
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "导出单片材料")
|
|
|
|
|
@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());
|
|
|
|
|
String fatherFile = fileAddress + "/项目压缩文件";
|
|
|
|
|
FileUtil.mkdir(fatherFile);
|
|
|
|
|
for (long id : ids) {
|
|
|
|
|
BasicInformationResponse a1 = basicInformationService.selectOne(id);
|
|
|
|
|
for (String id : ids.split(",")) {
|
|
|
|
|
BasicInformationResponse a1 = basicInformationService.selectOne(Long.valueOf(id));
|
|
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
|
|
map.put("issuingTime", a1.getBasicInformation().getIssuingTime() != null ? a1.getBasicInformation().getIssuingTime() : "/");
|
|
|
|
|
map.put("jsjd", a1.getBasicInformation().getJsjd() != null ? a1.getBasicInformation().getJsjd() : "/");
|
|
|
|
|