|
|
@ -578,7 +578,7 @@ public class PackingServiceImpl implements PackingService { |
|
|
//查询打印的列信息 |
|
|
//查询打印的列信息 |
|
|
List<Reportcontentitem> reportcontentitemList = reportcontentitemService.getReportcontentitemList(fileVo.getReportId()); |
|
|
List<Reportcontentitem> reportcontentitemList = reportcontentitemService.getReportcontentitemList(fileVo.getReportId()); |
|
|
Map<String, String> itemMap = reportcontentitemList.stream().collect(Collectors.toMap(Reportcontentitem::getObjectgroup, Reportcontentitem::getDbfieldname)); |
|
|
Map<String, String> itemMap = reportcontentitemList.stream().collect(Collectors.toMap(Reportcontentitem::getObjectgroup, Reportcontentitem::getDbfieldname)); |
|
|
|
|
|
|
|
|
|
|
|
String bartenderSeqKey = ""; |
|
|
// 获取卷标签打印模板 |
|
|
// 获取卷标签打印模板 |
|
|
for (String key : itemMap.keySet()) { |
|
|
for (String key : itemMap.keySet()) { |
|
|
String dbName = itemMap.get(key); |
|
|
String dbName = itemMap.get(key); |
|
|
@ -594,9 +594,13 @@ public class PackingServiceImpl implements PackingService { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
// 手工参数 #子头 |
|
|
|
|
|
if (dbName.indexOf("#") == 0) { |
|
|
|
|
|
itemMap.put(key, StringUtils.isNotEmpty(String.valueOf(paramMap.get(key))) ? String.valueOf(paramMap.get(key)) : " "); |
|
|
|
|
|
|
|
|
//流水号特殊测试 |
|
|
|
|
|
if (dbName.startsWith("流水号")){ |
|
|
|
|
|
bartenderSeqKey = key; |
|
|
|
|
|
log.info("流水号Key:{}",key); |
|
|
|
|
|
}else if (dbName.indexOf("#") == 0) { |
|
|
|
|
|
// 手工参数 #子头 |
|
|
|
|
|
itemMap.put(key, paramMap.get(key) == null ? "" : String.valueOf(paramMap.get(key))); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -610,7 +614,7 @@ public class PackingServiceImpl implements PackingService { |
|
|
String seqNumber = reportfileSeqinfoService.getSeqNumber(fileVo.getReportId(), OutBoxConstant.SEQ_NUMBER, itemMap); |
|
|
String seqNumber = reportfileSeqinfoService.getSeqNumber(fileVo.getReportId(), OutBoxConstant.SEQ_NUMBER, itemMap); |
|
|
//原佘莉写得方法 |
|
|
//原佘莉写得方法 |
|
|
if (StringUtils.isNotEmpty(seqNumber)) { |
|
|
if (StringUtils.isNotEmpty(seqNumber)) { |
|
|
itemMap.put("流水号", seqNumber.toString()); |
|
|
|
|
|
|
|
|
itemMap.put(bartenderSeqKey, seqNumber.toString()); |
|
|
} |
|
|
} |
|
|
log.info("流水号处理完成"); |
|
|
log.info("流水号处理完成"); |
|
|
|
|
|
|
|
|
|