| | |
| | | for (Map.Entry<String, List<TjOrderYcxm>> entry : stringListMap.entrySet()) { |
| | | List<TjOrderYcxm> details = entry.getValue(); |
| | | String xmmc = entry.getKey(); |
| | | // String xmmc = details.get(0).getProName(); |
| | | boolean isXmWrite = false; |
| | | int index = 1; |
| | | String szyssy=""; |
| | | StringBuilder builders = new StringBuilder(); |
| | | for (TjOrderYcxm detail : details) { |
| | | // if(detail.getJcxm().contains("舒张压")||detail.getJcxm().contains("收缩压")){ |
| | | // builders.append(detail.getJcxm()).append(detail.getJcjg()).append(" "); |
| | | // szyssy+=builders.toString(); |
| | | // continue; |
| | | // } |
| | | if (!isXmWrite) { |
| | | paragraph = new Paragraph(xmXh + ". " + xmmc, defaultFont); |
| | | paragraph.setAlignment(Element.ALIGN_LEFT); |
| | |
| | | paragraph.setAlignment(Element.ALIGN_LEFT); |
| | | document2.add(paragraph); |
| | | } |
| | | |
| | | // if(StringUtil.isNotBlank(szyssy)){ |
| | | // if (!isXmWrite) { |
| | | // paragraph = new Paragraph(xmXh + ". " + xmmc, defaultFont); |
| | | // paragraph.setAlignment(Element.ALIGN_LEFT); |
| | | // document2.add(paragraph); |
| | | // isXmWrite = true; |
| | | // } |
| | | // StringBuilder builder = new StringBuilder(); |
| | | // builder.append(" (").append(index).append(")").append(szyssy).append("\n"); |
| | | // szyssy = builder.toString(); |
| | | // paragraph = new Paragraph(szyssy, defaultFont); |
| | | // paragraph.setAlignment(Element.ALIGN_LEFT); |
| | | // document2.add(paragraph); |
| | | // } |
| | | |
| | | if (isXmWrite) { |
| | | paragraph = PdfUtils.setParagraph(defaultFont, ""); |
| | | paragraph.setLeading(0f); |
| | |
| | | ltkjHybgdLambdaQueryWrapper.eq(LtkjHybgd::getTmh, hysqd.getTmh()); |
| | | List<LtkjHybgd> hybgds = ltkjHybgdService.list(ltkjHybgdLambdaQueryWrapper); |
| | | if(null !=hybgds && !hybgds.isEmpty()){ |
| | | // hybgds = hybgds.stream().distinct().collect(Collectors.toList()); |
| | | hybgds = new ArrayList<>(hybgds.stream() |
| | | .collect(Collectors.toMap(LtkjHybgd::getJcxm, p -> p, (existing, replacement) -> existing)) |
| | | .values()); |
| | | |
| | | |
| | | |
| | | // hybgds=hybgds.stream().sorted(Comparator.comparing(LtkjHybgd::getJcxm, Collator.getInstance(Locale.CHINA))).collect(Collectors.toList()); |
| | | // hybgds = hybgds.stream() |
| | | // .sorted(Comparator.comparingInt( |