From c8355d4a1f27716edc510d936b6a7982b0ab99b3 Mon Sep 17 00:00:00 2001
From: chenrui <1187576398@qq.com>
Date: 星期一, 24 三月 2025 13:37:26 +0800
Subject: [PATCH] Merge branch 'master' of http://114.132.189.42:9002/r/tx-lims-after

---
 inspect-server/src/main/java/com/yuanchu/mom/utils/WordUtils.java |   92 +++++++++++++++++++++++++++++++---------------
 1 files changed, 62 insertions(+), 30 deletions(-)

diff --git a/inspect-server/src/main/java/com/yuanchu/mom/utils/WordUtils.java b/inspect-server/src/main/java/com/yuanchu/mom/utils/WordUtils.java
index b57dcb6..b70e099 100644
--- a/inspect-server/src/main/java/com/yuanchu/mom/utils/WordUtils.java
+++ b/inspect-server/src/main/java/com/yuanchu/mom/utils/WordUtils.java
@@ -2687,7 +2687,13 @@
         for (InsProduct insPro : insProducts) {
             InsProductWordDto insProductWordDto = new InsProductWordDto();
             insProductWordDto.setIndex(index1+"");//搴忓彿
-            insProductWordDto.setTerm(insPro.getInspectionItem()+"-"+insPro.getInspectionItemSubclass());//妫�楠岄」鐩�
+            if (insPro.getInspectionItem().contains("鐢佃矾璇曢獙")){
+                insProductWordDto.setTerm("鐢垫�ц兘鍙傛暟-"+insPro.getInspectionItemSubclass());//妫�楠岄」鐩�
+            }else if (insPro.getInspectionItem().contains("杈愬皠璇曢獙")){
+                insProductWordDto.setTerm("杈愬皠鎬ц兘鍙傛暟"+insPro.getInspectionItemSubclass());//妫�楠岄」鐩�
+            }else {
+                insProductWordDto.setTerm(insPro.getInspectionItem()+"-"+insPro.getInspectionItemSubclass());//妫�楠岄」鐩�
+            }
             if (ObjectUtils.isNotNull(insPro.getInsResult()) && insPro.getInsResult()==0) {
                 insProductWordDto.setResult("涓嶅悎鏍�");//缁撹
             } else {
@@ -2831,7 +2837,7 @@
         //杈愬皠鐨勬爣棰�
         String title3 = "";
         if (radiationReportNum > 0) {
-            title3 = "杈愬皠鏂瑰悜鍥惧弬鏁�";
+            title3 = "杈愬皠鎬ц兘鍙傛暟";
         }
         //鐜琛ㄦ牸
         List<Map<String, Object>> tables4 = new ArrayList<>();
@@ -3262,7 +3268,7 @@
     private void getWord1(String term, InsOrderState insOrderState, List<Map<String, Object>> tables2) {
         AtomicInteger lable = new AtomicInteger(1);
         AtomicInteger index = new AtomicInteger();
-        String title = term + "鐢佃矾鍙傛暟";
+        String title = term + "鐢垫�ц兘鍙傛暟";
         InsSample insSample = insSampleMapper.selectById(insOrderState.getInsSampleId());
         //鏌ヨ椤圭洰
         List<InsProduct> insProducts = insProductMapper.selectList(Wrappers.<InsProduct>lambdaQuery()
@@ -3579,8 +3585,9 @@
                                     if (i % 2 == 0) {
                                         //鏈�宸��
                                         String value = result2s.get(0).getValue().replaceAll("[\\[\\]\"]", "");
+                                        String text = value.split(",")[(j - 5) + (i - 1) / 2 * (Math.min(ports, 8))];
                                         try {
-                                            textRenderData.setText(value.split(",")[(j - 5) + (i - 1) / 2 * (Math.min(ports, 8))]);
+                                            textRenderData.setText(String.format("%.2f",Double.parseDouble(text)));
                                         } catch (Exception e) {
                                             textRenderData.setText("");
                                         }
@@ -3668,7 +3675,8 @@
                                 } else if (j % 2 == 0) {
                                     String value = result2s.get(0).getValue().replaceAll("[\\[\\]\"]", "");
                                     try {
-                                        textRenderData.setText(value.split(",")[(j - 6) / 2 + (i - cc - 1) * 4] + "鈭�5" + i + (j - 6));
+                                        String text = value.split(",")[(j - 6) / 2 + (i - cc - 1) * 4];
+                                        textRenderData.setText(String.format("%.2f",Double.parseDouble(text)) + "鈭�5" + i + (j - 6));
                                     } catch (Exception e) {
                                         textRenderData.setText("");
                                     }
@@ -3680,7 +3688,8 @@
                                 } else {
                                     String value = result2s.get(0).getValue().replaceAll("[\\[\\]\"]", "");
                                     try {
-                                        textRenderData.setText(value.split(",")[(j - 5) / 2 + (i - cc - 1) * 4] + "鈭�5" + i + (j - 5));
+                                        String text = value.split(",")[(j - 5) / 2 + (i - cc - 1) * 4];
+                                        textRenderData.setText(String.format("%.2f",Double.parseDouble(text)) + "鈭�5" + i + (j - 5));
                                     } catch (Exception e) {
                                         textRenderData.setText("");
                                     }
@@ -3760,7 +3769,8 @@
                                 } else if (j % 2 == 0) {
                                     String value = result2s.get(0).getValue().replaceAll("[\\[\\]\"]", "");
                                     try {
-                                        textRenderData.setText(value.split(",")[(j - 6) / 2 + (i - (dd == 0 ? cc : dd) - 1) * 4] + "鈭�5" + i + (j - 6));
+                                        String text = value.split(",")[(j - 6) / 2 + (i - (dd == 0 ? cc : dd) - 1) * 4];
+                                        textRenderData.setText(String.format("%.2f",Double.parseDouble(text)) + "鈭�5" + i + (j - 6));
                                     } catch (Exception e) {
                                         textRenderData.setText("");
                                     }
@@ -3772,7 +3782,8 @@
                                 } else {
                                     String value = result2s.get(0).getValue().replaceAll("[\\[\\]\"]", "");
                                     try {
-                                        textRenderData.setText(value.split(",")[(j - 5) / 2 + (i - (dd == 0 ? cc : dd) - 1) * 4] + "鈭�5" + i + (j - 5));
+                                        String text = value.split(",")[(j - 5) / 2 + (i - (dd == 0 ? cc : dd) - 1) * 4];
+                                        textRenderData.setText(String.format("%.2f",Double.parseDouble(text)) + "鈭�5" + i + (j - 5));
                                     } catch (Exception e) {
                                         textRenderData.setText("");
                                     }
@@ -3852,7 +3863,8 @@
                                 } else if (j % 2 == 0) {
                                     String value = result2s.get(0).getValue().replaceAll("[\\[\\]\"]", "");
                                     try {
-                                        textRenderData.setText(value.split(",")[(j - 6) / 2 + (i - (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) - 1) * 4] + "鈭�5" + i + (j - 6));
+                                        String text = value.split(",")[(j - 6) / 2 + (i - (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) - 1) * 4];
+                                        textRenderData.setText(String.format("%.2f",Double.parseDouble(text)) + "鈭�5" + i + (j - 6));
                                     } catch (Exception e) {
                                         textRenderData.setText("");
                                     }
@@ -3864,7 +3876,8 @@
                                 } else {
                                     String value = result2s.get(0).getValue().replaceAll("[\\[\\]\"]", "");
                                     try {
-                                        textRenderData.setText(value.split(",")[(j - 5) / 2 + (i - (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) - 1) * 4] + "鈭�5" + i + (j - 5));
+                                        String text = value.split(",")[(j - 5) / 2 + (i - (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) - 1) * 4];
+                                        textRenderData.setText(String.format("%.2f",Double.parseDouble(text)) + "鈭�5" + i + (j - 5));
                                     } catch (Exception e) {
                                         textRenderData.setText("");
                                     }
@@ -3944,7 +3957,8 @@
                                 } else if (j % 2 == 0) {
                                     String value = result2s.get(0).getValue().replaceAll("[\\[\\]\"]", "");
                                     try {
-                                        textRenderData.setText(value.split(",")[(j - 6) / 2 + (i - (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff) - 1) * 4] + "鈭�5" + i + (j - 6));
+                                        String text = value.split(",")[(j - 6) / 2 + (i - (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff) - 1) * 4];
+                                        textRenderData.setText(String.format("%.2f",Double.parseDouble(text)) + "鈭�5" + i + (j - 6));
                                     } catch (Exception e) {
                                         textRenderData.setText("");
                                     }
@@ -3956,7 +3970,8 @@
                                 } else {
                                     String value = result2s.get(0).getValue().replaceAll("[\\[\\]\"]", "");
                                     try {
-                                        textRenderData.setText(value.split(",")[(j - 5) / 2 + (i - (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff) - 1) * 4] + "鈭�5" + i + (j - 5));
+                                        String text = value.split(",")[(j - 5) / 2 + (i - (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff) - 1) * 4];
+                                        textRenderData.setText(String.format("%.2f",Double.parseDouble(text)) + "鈭�5" + i + (j - 5));
                                     } catch (Exception e) {
                                         textRenderData.setText("");
                                     }
@@ -4047,7 +4062,8 @@
                                         String[] value = result2s.get((i - (gg == 0 ? (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff) : gg)) / portRow / (angles + 2)).getValue().split("\\],\\[");
                                         String[] split = value[(i - (gg == 0 ? (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff) : gg) - 2) % (angles + 1)].replaceAll("[\\[\\]\"]", "").split(",");
                                         try {
-                                            textRenderData.setText(split[((j - 5) + ((i - (gg == 0 ? (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff) : gg) - 1) / (angles + 1) % portRow) * (Math.min(ports, 8)))]);
+                                            String text = split[((j - 5) + ((i - (gg == 0 ? (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff) : gg) - 1) / (angles + 1) % portRow) * (Math.min(ports, 8)))];
+                                            textRenderData.setText(String.format("%.2f",Double.parseDouble(text)));
                                         } catch (Exception e) {
                                             textRenderData.setText("");
                                         }
@@ -4151,7 +4167,8 @@
                                         String[] value = result2s.get(0).getValue().split("\\],\\[");
                                         String[] split = value[(i + (angles - 1)) % (angles + 1)].replaceAll("[\\[\\]\"]", "").split(",");
                                         try {
-                                            textRenderData.setText(split[(j - 5) + ((i + (angles - 1)) / (angles + 1) - 1) * (Math.min(ports, 8))]);
+                                            String text = split[(j - 5) + ((i + (angles - 1)) / (angles + 1) - 1) * (Math.min(ports, 8))];
+                                            textRenderData.setText(String.format("%.2f",Double.parseDouble(text)));
                                         } catch (Exception e) {
                                             textRenderData.setText("");
                                         }
@@ -4266,13 +4283,15 @@
                                             String[] split = value[(i + (angles - 1)) % (angles + 1)].replaceAll("[\\[\\]\"]", "").split(",");
                                             if (j % 2 == 0) {
                                                 try {
-                                                    textRenderData.setText(split[(j - 6) / 2 + ((i - cc) / (angles + 2)) * (ports > 8 ? 4 : (ports + 1) / 2)] + "鈭�5" + i + (j - 6));
+                                                    String text = split[(j - 6) / 2 + ((i - cc) / (angles + 2)) * (ports > 8 ? 4 : (ports + 1) / 2)];
+                                                    textRenderData.setText(String.format("%.2f",Double.parseDouble(text)) + "鈭�5" + i + (j - 6));
                                                 } catch (Exception e) {
                                                     textRenderData.setText("");
                                                 }
                                             } else {
                                                 try {
-                                                    textRenderData.setText(split[(j - 5) / 2 + ((i - cc) / (angles + 2)) * (ports > 8 ? 4 : (ports + 1) / 2)] + "鈭�5" + i + (j - 5));
+                                                    String text = split[(j - 5) / 2 + ((i - cc) / (angles + 2)) * (ports > 8 ? 4 : (ports + 1) / 2)];
+                                                    textRenderData.setText(String.format("%.2f",Double.parseDouble(text)) + "鈭�5" + i + (j - 5));
                                                 } catch (Exception e) {
                                                     textRenderData.setText("");
                                                 }
@@ -4389,13 +4408,15 @@
                                             String[] split = value[(i + (angles - 1)) % (angles + 1)].replaceAll("[\\[\\]\"]", "").split(",");
                                             if (j % 2 == 0) {
                                                 try {
-                                                    textRenderData.setText(split[(j - 6) / 2 + ((i - (dd == 0 ? cc : dd)) / (angles + 2)) * (ports > 8 ? 4 : (ports + 1) / 2)] + "鈭�5" + i + (j - 6));
+                                                    String text = split[(j - 6) / 2 + ((i - (dd == 0 ? cc : dd)) / (angles + 2)) * (ports > 8 ? 4 : (ports + 1) / 2)];
+                                                    textRenderData.setText(String.format("%.2f",Double.parseDouble(text)) + "鈭�5" + i + (j - 6));
                                                 } catch (Exception e) {
                                                     textRenderData.setText("");
                                                 }
                                             } else {
                                                 try {
-                                                    textRenderData.setText(split[(j - 5) / 2 + ((i - (dd == 0 ? cc : dd)) / (angles + 2)) * (ports > 8 ? 4 : (ports + 1) / 2)] + "鈭�5" + i + (j - 5));
+                                                    String text = split[(j - 5) / 2 + ((i - (dd == 0 ? cc : dd)) / (angles + 2)) * (ports > 8 ? 4 : (ports + 1) / 2)];
+                                                    textRenderData.setText(String.format("%.2f",Double.parseDouble(text)) + "鈭�5" + i + (j - 5));
                                                 } catch (Exception e) {
                                                     textRenderData.setText("");
                                                 }
@@ -4512,13 +4533,15 @@
                                             String[] split = value[(i + (angles - 1)) % (angles + 1)].replaceAll("[\\[\\]\"]", "").split(",");
                                             if (j % 2 == 0) {
                                                 try {
-                                                    textRenderData.setText(split[(j - 6) / 2 + ((i - (ee == 0 ? ((dd == 0 ? cc : dd)) : ee)) / (angles + 2)) * (ports > 8 ? 4 : (ports + 1) / 2)] + "鈭�5" + i + (j - 6));
+                                                    String text = split[(j - 6) / 2 + ((i - (ee == 0 ? ((dd == 0 ? cc : dd)) : ee)) / (angles + 2)) * (ports > 8 ? 4 : (ports + 1) / 2)];
+                                                    textRenderData.setText(String.format("%.2f",Double.parseDouble(text)) + "鈭�5" + i + (j - 6));
                                                 } catch (Exception e) {
                                                     textRenderData.setText("");
                                                 }
                                             } else {
                                                 try {
-                                                    textRenderData.setText(split[(j - 5) / 2 + ((i - (ee == 0 ? ((dd == 0 ? cc : dd)) : ee)) / (angles + 2)) * (ports > 8 ? 4 : (ports + 1) / 2)] + "鈭�5" + i + (j - 5));
+                                                    String text = split[(j - 5) / 2 + ((i - (ee == 0 ? ((dd == 0 ? cc : dd)) : ee)) / (angles + 2)) * (ports > 8 ? 4 : (ports + 1) / 2)];
+                                                    textRenderData.setText(String.format("%.2f",Double.parseDouble(text)) + "鈭�5" + i + (j - 5));
                                                 } catch (Exception e) {
                                                     textRenderData.setText("");
                                                 }
@@ -4634,13 +4657,15 @@
                                             String[] split = value[(i + (angles - 1)) % (angles + 1)].replaceAll("[\\[\\]\"]", "").split(",");
                                             if (j % 2 == 0) {
                                                 try {
-                                                    textRenderData.setText(split[(j - 6) / 2 + ((i - (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff)) / (angles + 2)) * (ports > 8 ? 4 : (ports + 1) / 2)] + "鈭�5" + i + (j - 6));
+                                                    String text = split[(j - 6) / 2 + ((i - (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff)) / (angles + 2)) * (ports > 8 ? 4 : (ports + 1) / 2)];
+                                                    textRenderData.setText(String.format("%.2f",Double.parseDouble(text)) + "鈭�5" + i + (j - 6));
                                                 } catch (Exception e) {
                                                     textRenderData.setText("");
                                                 }
                                             } else {
                                                 try {
-                                                    textRenderData.setText(split[(j - 5) / 2 + ((i - (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff)) / (angles + 2)) * (ports > 8 ? 4 : (ports + 1) / 2)] + "鈭�5" + i + (j - 5));
+                                                    String text = split[(j - 5) / 2 + ((i - (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff)) / (angles + 2)) * (ports > 8 ? 4 : (ports + 1) / 2)];
+                                                    textRenderData.setText(String.format("%.2f",Double.parseDouble(text)) + "鈭�5" + i + (j - 5));
                                                 } catch (Exception e) {
                                                     textRenderData.setText("");
                                                 }
@@ -4739,7 +4764,8 @@
                                         String[] value = result2s.get((i - (gg == 0 ? (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff) : gg)) / portRow / (angles + 2)).getValue().split("\\],\\[");
                                         String[] split = value[(i + (angles - 1)) % (angles + 1)].replaceAll("[\\[\\]\"]", "").split(",");
                                         try {
-                                            textRenderData.setText(split[((j - 5) + ((i - (gg == 0 ? (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff) : gg) - 1) / (angles + 1) % portRow) * (Math.min(ports, 8)))]);
+                                            String text = split[((j - 5) + ((i - (gg == 0 ? (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff) : gg) - 1) / (angles + 1) % portRow) * (Math.min(ports, 8)))];
+                                            textRenderData.setText(String.format("%.2f",Double.parseDouble(text)));
                                         } catch (Exception e) {
                                             textRenderData.setText("");
                                         }
@@ -4835,7 +4861,8 @@
                                         //鏈�宸��
                                         String[] value = result2s.get(0).getValue().split("\\],\\[");
                                         String[] split = value[(i + (angles - 1)) % (angles + 1)].replaceAll("[\\[\\]\"]", "").split(",");
-                                        textRenderData.setText(split[0] + "鈭�7" + i);
+                                        String text = split[0];
+                                        textRenderData.setText(String.format("%.2f",Double.parseDouble(text)) + "鈭�7" + i);
                                     }
                                     renderData.add(textRenderData);
                                     paragraphRenderData.setContents(renderData);
@@ -4928,7 +4955,8 @@
                                         //鏈�宸��
                                         String[] value = result2s.get(0).getValue().split("\\],\\[");
                                         String[] split = value[(i + (angles - 1)) % (angles + 1)].replaceAll("[\\[\\]\"]", "").split(",");
-                                        textRenderData.setText(split[0] + "鈭�7" + i);
+                                        String text = split[0];
+                                        textRenderData.setText(String.format("%.2f",Double.parseDouble(text)) + "鈭�7" + i);
                                     }
                                     renderData.add(textRenderData);
                                     paragraphRenderData.setContents(renderData);
@@ -5030,7 +5058,8 @@
                                             String[] value = result2s.get(0).getValue().split("\\],\\[");
                                             String[] split = value[(i + (angles - 1)) % (angles + 1)].replaceAll("[\\[\\]\"]", "").split(",");
                                             try {
-                                                textRenderData.setText(split[(j - 5) + ((i - (nn == 0 ? (mm == 0 ? (hh == 0 ? (gg == 0 ? (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff) : gg) : hh) : mm) : nn)) / (angles + 2)) * Math.min(length, 8)]);
+                                                String text = split[(j - 5) + ((i - (nn == 0 ? (mm == 0 ? (hh == 0 ? (gg == 0 ? (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff) : gg) : hh) : mm) : nn)) / (angles + 2)) * Math.min(length, 8)];
+                                                textRenderData.setText(String.format("%.2f",Double.parseDouble(text)));
                                             } catch (Exception e) {
                                                 textRenderData.setText("");
                                             }
@@ -5137,7 +5166,8 @@
                                             String[] value = result2s.get(0).getValue().split("\\],\\[");
                                             String[] split = value[(i + (angles - 1)) % (angles + 1)].replaceAll("[\\[\\]\"]", "").split(",");
                                             try {
-                                                textRenderData.setText(split[(j - 5) + ((i - (pp == 0 ? (nn == 0 ? (mm == 0 ? (hh == 0 ? (gg == 0 ? (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff) : gg) : hh) : mm) : nn) : pp)) / (angles + 2)) * Math.min(length, 8)]);
+                                                String text = split[(j - 5) + ((i - (pp == 0 ? (nn == 0 ? (mm == 0 ? (hh == 0 ? (gg == 0 ? (ff == 0 ? (ee == 0 ? ((dd == 0 ? cc : dd)) : ee) : ff) : gg) : hh) : mm) : nn) : pp)) / (angles + 2)) * Math.min(length, 8)];
+                                                textRenderData.setText(String.format("%.2f",Double.parseDouble(text)));
                                             } catch (Exception e) {
                                                 textRenderData.setText("");
                                             }
@@ -5244,7 +5274,8 @@
                                             String[] value = result2s.get(0).getValue().split("\\],\\[");
                                             String[] split = value[(i + (angles - 1)) % (angles + 1)].replaceAll("[\\[\\]\"]", "").split(",");
                                             try {
-                                                textRenderData.setText(split[(j - 5) + ((i - rr) / (angles + 2)) * Math.min(length, 8)]);
+                                                String text = split[(j - 5) + ((i - rr) / (angles + 2)) * Math.min(length, 8)];
+                                                textRenderData.setText(String.format("%.2f",Double.parseDouble(text)));
                                             } catch (Exception e) {
                                                 textRenderData.setText("");
                                             }
@@ -5350,7 +5381,8 @@
                                             String[] value = result2s.get(0).getValue().split("\\],\\[");
                                             String[] split = value[(i + (angles - 1)) % (angles + 1)].replaceAll("[\\[\\]\"]", "").split(",");
                                             try {
-                                                textRenderData.setText(split[(j - 5) + ((i - ss) / (angles + 2)) * Math.min(length, 8)]);
+                                                String text = split[(j - 5) + ((i - ss) / (angles + 2)) * Math.min(length, 8)];
+                                                textRenderData.setText(String.format("%.2f",Double.parseDouble(text)));
                                             } catch (Exception e) {
                                                 textRenderData.setText("");
                                             }
@@ -5403,7 +5435,7 @@
     //鐢佃矾鎶ュ憡鐢ㄤ簬鎬绘姤鍛婄殑鏂规硶(鏃犳簮鍣ㄤ欢)
     private void getWord2(String term, InsOrderState insOrderState, List<Map<String, Object>> tables2) {
         AtomicInteger index = new AtomicInteger();
-        String title = term + "鐢佃矾鍙傛暟";
+        String title = term + "鐢垫�ц兘鍙傛暟";
         //鏌ヨ鏍峰搧
         InsSample insSample = insSampleMapper.selectById(insOrderState.getInsSampleId());
         //鏌ヨ椤圭洰

--
Gitblit v1.9.3