From 51ec98113c6d49d0f7eec4e3c030e55e337e97db Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期一, 26 五月 2025 15:47:16 +0800
Subject: [PATCH] 芯导软件(江苏)有限公司  delete

---
 inspect-server/src/main/java/com/yuanchu/mom/utils/WordUtils.java |  116 +++++++++++++++++++++++++++++++++++++++-------------------
 1 files changed, 78 insertions(+), 38 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 b62f370..d0defa3 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
@@ -2328,7 +2328,8 @@
                     }
                     result2VOS.add(insProductResult2VO1);
                 }
-            } else {
+            }
+            else {
                 insProductResult2VO.setValue(value.replace("\"", ""));
                 result2VOS.add(insProductResult2VO);
             }
@@ -2658,13 +2659,19 @@
                 if (vValues.size() > 0) {
                     //涓嶅悎鏍�
                     if (vValues.get(1) != 0) {
-                        productCount2 = productCount2 - 1 + vValues.get(1);
+                        productCount2 = productCount2 + vValues.get(1);
                     }
                     //鍚堟牸
                     if (vValues.get(0) != 0) {
                         if (fusheProduct.getInsResult() == 1) {
-                            productCount3 = productCount3 - 1 + vValues.get(0);
-                        } else productCount3 = productCount3 + vValues.get(0);
+                            productCount3 = productCount3  + vValues.get(0);
+                        }
+                    }
+                    // 鍒ゅ畾鏄惁鍑忔帀杈愬皠妫�楠岄」鏈韩
+                    if (fusheProduct.getInsResult() == 1) {
+                        productCount3 = productCount3 - 1;
+                    }else if(fusheProduct.getInsResult() == 0){
+                        productCount2 = productCount2 - 1;
                     }
                     //鎬绘暟=椤圭洰鎬绘暟-杈愬皠椤圭洰鏁伴噺+杈愬皠鍏蜂綋鐨�(鍚堟牸+涓嶅悎鏍�)鏁伴噺
                     productCount = productCount - 1 + vValues.stream().mapToLong(Long::longValue).sum();
@@ -2681,7 +2688,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 {
@@ -2825,7 +2838,7 @@
         //杈愬皠鐨勬爣棰�
         String title3 = "";
         if (radiationReportNum > 0) {
-            title3 = "杈愬皠鏂瑰悜鍥惧弬鏁�";
+            title3 = "杈愬皠鎬ц兘鍙傛暟";
         }
         //鐜琛ㄦ牸
         List<Map<String, Object>> tables4 = new ArrayList<>();
@@ -2971,13 +2984,14 @@
                 if (i % 2 == 0) {
                     urlListDto = new UrlListDto();
                     urlListDto.setImageOne(Pictures.ofLocal(imgUrl + "/" + insOrderFiles.get(i).getFileUrl()).create());
+                    if (i == insOrderFiles.size() - 1) {
+                        urlList.add(urlListDto);
+                    }
                 } else {
                     urlListDto.setImageTwo(Pictures.ofLocal(imgUrl + "/" + insOrderFiles.get(i).getFileUrl()).create());
                     urlList.add(urlListDto);
                 }
-                if (i == insOrderFiles.size() - 1) {
-                    urlList.add(urlListDto);
-                }
+
             }
         }
         //鏍峰搧缂栧彿鍙傜収涓婅堪sampleCode
@@ -3255,7 +3269,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()
@@ -3572,8 +3586,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("");
                                         }
@@ -3661,7 +3676,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("");
                                     }
@@ -3673,7 +3689,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("");
                                     }
@@ -3753,7 +3770,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("");
                                     }
@@ -3765,7 +3783,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("");
                                     }
@@ -3845,7 +3864,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("");
                                     }
@@ -3857,7 +3877,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("");
                                     }
@@ -3937,7 +3958,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("");
                                     }
@@ -3949,7 +3971,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("");
                                     }
@@ -4040,7 +4063,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("");
                                         }
@@ -4144,7 +4168,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("");
                                         }
@@ -4259,13 +4284,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("");
                                                 }
@@ -4382,13 +4409,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("");
                                                 }
@@ -4505,13 +4534,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("");
                                                 }
@@ -4627,13 +4658,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("");
                                                 }
@@ -4732,7 +4765,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("");
                                         }
@@ -4828,7 +4862,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);
@@ -4921,7 +4956,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);
@@ -5023,7 +5059,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("");
                                             }
@@ -5130,7 +5167,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("");
                                             }
@@ -5237,7 +5275,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("");
                                             }
@@ -5343,7 +5382,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("");
                                             }
@@ -5396,7 +5436,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());
         //鏌ヨ椤圭洰
@@ -5428,7 +5468,7 @@
         List<RowRenderData> rows = new ArrayList<>();
         Set<String> itemSet = new HashSet<>();
         //琛ㄦ牸鐨勮鏁�
-        for (int i = 0; i < result2VOS.size()+1; i++) {
+        for (int i = 0; i < result2VOS.size(); i++) {
             RowRenderData rowRenderData = new RowRenderData();
             RowStyle rowStyle = new RowStyle();
             rowStyle.setHeight(40);

--
Gitblit v1.9.3