| | |
| | | private LtkjHysqdService ltkjHysqdService; |
| | | @Autowired |
| | | private LtkjGetexamreportinfoService ltkjGetexamreportinfoService; |
| | | @Value("${path.filePath}") |
| | | private String value; |
| | | // @Value("${path.filePath}") |
| | | // private String value; |
| | | @Value("${path.reportServer}") |
| | | private String urlValue; |
| | | @Autowired |
| | |
| | | String s2 = sysConfigService.selectConfigByKey("tjreport_font_size_second_page_title"); |
| | | String s3 = sysConfigService.selectConfigByKey("tjreport_font_size_result_title"); |
| | | String s4 = sysConfigService.selectConfigByKey("tjreport_font_size_zongjian"); |
| | | String value = sysConfigService.selectConfigByKey("path_filePath"); |
| | | // String hospName = sysDeptController.getdangqiandengluyuanqu().get("msg").toString(); |
| | | if (StrUtil.isNotBlank(s1) && Integer.parseInt(s1) > 10) DEFAULT_FONT_SIZE = Integer.parseInt(s1); |
| | | else DEFAULT_FONT_SIZE = 10; |
| | |
| | | */ |
| | | private void savePDFFile(String outputFileName1, TjOrder tjOrder, TjCustomer customer, ByteArrayOutputStream finalOutPut) throws IOException, DocumentException, InterruptedException { |
| | | // 第一步:生成文件并保存 |
| | | String value = sysConfigService.selectConfigByKey("path_filePath"); |
| | | String key = DataSourceContextHolder.getDataSourceKey(); |
| | | key = key.replace("ltkjpeis10_",""); |
| | | String outputPath1 = value + File.separator + key + File.separator; |
| | |
| | | String bgNr = jcbgd.getBgNr(); |
| | | // 正则表达式:匹配数字后跟 '.' 或 '、' |
| | | String regex = "\\d+[\\.,、]"; |
| | | // String regex = "(?<=\\d+)([\\.,、])"; |
| | | // 使用正则替换,匹配的数字后添加换行符 |
| | | yxbx = yxbx.replaceAll(regex, "\n$0"); |
| | | // bgNr = bgNr.replaceAll(regex, "\n$0"); |
| | | |
| | | if(StringUtil.isNotBlank(yxbx)) yxbx = yxbx.replaceAll(regex, "\n$0"); |
| | | if(StringUtil.isBlank(bgNr)) bgNr = ""; |
| | | if(StringUtil.isBlank(yxbx)) yxbx = ""; |
| | | tjPdfVO.setTs(yxbx); |
| | | tjPdfVO.setSj(bgNr); |
| | | tjPdfVO.setShys(jcbgd.getShysxm()); |