解决报表打印bug
This commit is contained in:
@ -25,9 +25,9 @@ import java.util.Map;
|
||||
|
||||
|
||||
/**
|
||||
* 评标委员会签字表
|
||||
* 评审专家签到
|
||||
*/
|
||||
@Service("judgesSign")
|
||||
@Service("judgesSignIn")
|
||||
@Slf4j
|
||||
public class JudgesSignImpl implements ExportService {
|
||||
|
||||
@ -47,13 +47,13 @@ public class JudgesSignImpl implements ExportService {
|
||||
*/
|
||||
@Override
|
||||
public void doExport(ExportParam param, HttpServletRequest request, HttpServletResponse response) {
|
||||
log.info("评标委员会签字表,ExportParam = {}", JsonUtils.objectToJson(param));
|
||||
log.info("评审专家签到,ExportParam = {}", JsonUtils.objectToJson(param));
|
||||
//项目和招标名称数据
|
||||
ProjectSectionVO section = commonFeignService.projectGetSectionById(param.getSectionId());
|
||||
log.info("评标委员会签字表 {},查询项目信息 = {}", param.getAssessRoomId(), JsonUtils.objectToJson(section));
|
||||
log.info("评审专家签到 {},查询项目信息 = {}", param.getAssessRoomId(), JsonUtils.objectToJson(section));
|
||||
//专家人员数据
|
||||
List<JuryPrintVO> list = commonFeignService.rsmsQueryReportPrintByRoomId(param.getAssessRoomId());
|
||||
log.info("评标委员会签字表 {},查询专家人员数据 = {}", param.getAssessRoomId(), JsonUtils.objectToJson(list));
|
||||
log.info("评审专家签到 {},查询专家人员数据 = {}", param.getAssessRoomId(), JsonUtils.objectToJson(list));
|
||||
ArrayList<Map<String, Object>> maps = new ArrayList<>();
|
||||
|
||||
for (int i = 0; i < list.size(); i++) {
|
||||
@ -80,7 +80,7 @@ public class JudgesSignImpl implements ExportService {
|
||||
XWPFTemplate template = XWPFTemplate.compile(file, config).render(all);
|
||||
|
||||
//导出的表格名称
|
||||
String dictName = commonFeignService.exportDictName(param.getId(), "评标委员会签字表") + ".docx";
|
||||
String dictName = commonFeignService.exportDictName(param.getId(), "评审专家签到表") + ".docx";
|
||||
String fileName = new String(dictName.getBytes(StandardCharsets.UTF_8), StandardCharsets.ISO_8859_1);
|
||||
|
||||
this.write(template, fileName, response);
|
||||
|
@ -23,9 +23,9 @@ import java.util.*;
|
||||
|
||||
|
||||
/**
|
||||
* 评审专家签到表
|
||||
* 评审承诺书确认记录
|
||||
*/
|
||||
@Service("judgesSignIn")
|
||||
@Service("judgesSign")
|
||||
@Slf4j
|
||||
public class JudgesSignInImpl implements ExportService {
|
||||
@Autowired
|
||||
@ -43,10 +43,10 @@ public class JudgesSignInImpl implements ExportService {
|
||||
@SneakyThrows
|
||||
@Override
|
||||
public void doExport(ExportParam param, HttpServletRequest request, HttpServletResponse response) {
|
||||
log.info("评审专家签到表,ExportParam = {}", JsonUtils.objectToJson(param));
|
||||
log.info("评审承诺书确认记录,ExportParam = {}", JsonUtils.objectToJson(param));
|
||||
//专家人员数据
|
||||
List<JuryPrintVO> list = commonFeignService.rsmsQueryReportPrintByRoomId(param.getAssessRoomId());
|
||||
log.info("评标委员会签字表 {},查询专家人员数据 = {}", param.getAssessRoomId(), JsonUtils.objectToJson(list));
|
||||
log.info("评审承诺书确认记录 {},查询专家人员数据 = {}", param.getAssessRoomId(), JsonUtils.objectToJson(list));
|
||||
ArrayList<Map<String, Object>> maps = new ArrayList<>();
|
||||
for (int i = 0; i < list.size(); i++) {
|
||||
Map<String, Object> data = new HashMap<>();
|
||||
@ -69,7 +69,7 @@ public class JudgesSignInImpl implements ExportService {
|
||||
Configure config = Configure.builder().bind("table", policy).build();
|
||||
XWPFTemplate template = XWPFTemplate.compile(file, config).render(all);
|
||||
//导出的表格名称
|
||||
String dictName = commonFeignService.exportDictName(param.getId(), "评审专家签到表") + ".docx";
|
||||
String dictName = commonFeignService.exportDictName(param.getId(), "评审承诺书确认记录表") + ".docx";
|
||||
String fileName = new String(dictName.getBytes(StandardCharsets.UTF_8), StandardCharsets.ISO_8859_1);
|
||||
|
||||
this.write(template, fileName, response);
|
||||
|
Binary file not shown.
BIN
src/main/resources/model/评审承诺书确认记录表.docx
Normal file
BIN
src/main/resources/model/评审承诺书确认记录表.docx
Normal file
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user