|
|
|
@ -119,12 +119,6 @@ public class OutBoxPrintServiceImpl implements OutBoxPrintService { |
|
|
|
List<Reportcontentitem> reportcontentitemList = reportcontentitemService.getReportcontentitemList(reportFileVo.getReportId()); |
|
|
|
Map<String, String> itemMap = reportcontentitemList.stream().collect(Collectors.toMap(Reportcontentitem::getObjectgroup, Reportcontentitem::getDbfieldname)); |
|
|
|
|
|
|
|
// 3.判断是否包含流水号 包含测返回流水号 |
|
|
|
String seqNumber = reportfileSeqinfoService.getSeqNumber(reportFileVo.getReportId(), OutBoxConstant.SEQ_NUMBER); |
|
|
|
if (StringUtils.isNotEmpty(seqNumber)) { |
|
|
|
itemMap.put("流水号", seqNumber.toString()); |
|
|
|
} |
|
|
|
log.info("流水号处理完成"); |
|
|
|
// Map<String, String> paramMap = outBoxParamVo.getParam().stream().collect(Collectors.toMap(ReportParametersEntity::getParametername, ReportParametersEntity::getOptionvalue)); |
|
|
|
Map<String, String> paramMap = outBoxParamVo.getParam().stream().collect(HashMap::new, (m, v) -> m.put(v.getParametername(), v.getOptionvalue()), HashMap::putAll); |
|
|
|
log.info("手工参数处理开始{}", paramMap.toString()); |
|
|
|
@ -160,6 +154,12 @@ public class OutBoxPrintServiceImpl implements OutBoxPrintService { |
|
|
|
} |
|
|
|
} |
|
|
|
log.info("手工参数处理结束{}", paramMap.toString()); |
|
|
|
// 3.判断是否包含流水号 包含测返回流水号 |
|
|
|
String seqNumber = reportfileSeqinfoService.getSeqNumber(reportFileVo.getReportId(), OutBoxConstant.SEQ_NUMBER, itemMap); |
|
|
|
if (StringUtils.isNotEmpty(seqNumber)) { |
|
|
|
itemMap.put("流水号", seqNumber.toString()); |
|
|
|
} |
|
|
|
log.info("流水号处理完成"); |
|
|
|
// 打印接口参数集 |
|
|
|
Map<String, Object> printOutMap = new HashMap<>(); |
|
|
|
int printQty = StringUtils.isNotEmpty(paramMap.get(OutBoxConstant.COPIES)) ? Integer.valueOf(paramMap.get(OutBoxConstant.COPIES)) : 1; |
|
|
|
|