From 25dc8eace099a8265cecfa952209b835eb9a346d Mon Sep 17 00:00:00 2001 From: zss <zss@example.com> Date: 星期三, 13 十一月 2024 17:14:28 +0800 Subject: [PATCH] 检验下单选择样品的时候不用原本那个接口,去掉两层,直接从天线和无源器件开始选 --- inspect-server/src/main/java/com/yuanchu/mom/service/impl/InsReportServiceImpl.java | 18 ------------------ 1 files changed, 0 insertions(+), 18 deletions(-) diff --git a/inspect-server/src/main/java/com/yuanchu/mom/service/impl/InsReportServiceImpl.java b/inspect-server/src/main/java/com/yuanchu/mom/service/impl/InsReportServiceImpl.java index bbbfaaf..6bb76f0 100644 --- a/inspect-server/src/main/java/com/yuanchu/mom/service/impl/InsReportServiceImpl.java +++ b/inspect-server/src/main/java/com/yuanchu/mom/service/impl/InsReportServiceImpl.java @@ -101,9 +101,6 @@ private InsOrderMapper insOrderMapper; @Resource - private StandardMethodListMapper standardMethodListMapper; - - @Resource private InsOrderStateMapper insOrderStateMapper; @Resource @@ -491,25 +488,10 @@ os = new FileOutputStream(file); //瑕佽浆鎹㈢殑word鏂囦欢 com.aspose.words.Document doc = new com.aspose.words.Document(wordPath); - TableCollection tables = doc.getFirstSection().getBody().getTables(); - for (Table table : tables) { - RowCollection rows = table.getRows(); - table.setAllowAutoFit(false); - for (Row row : rows) { - CellCollection cells = row.getCells(); - for (Cell cell : cells) { - CellFormat cellFormat = cell.getCellFormat(); - cellFormat.setFitText(false); //璁剧疆鑷�傚簲鍏抽棴 - cellFormat.setWrapText(true); // 璁剧疆鑷姩鎹㈣ - } - } - } - doc.updateFields(); doc.save(os, SaveFormat.PDF); //娣诲姞楠戠紳绔� stamperCheckMarkPDF(pdfPath.replace(".pdf", "-1.pdf"), pdfPath, imgUrl + "/" + sealUrl); - } catch (Exception e) { e.printStackTrace(); -- Gitblit v1.9.3