فهرست منبع

检查报告-导出

zhuang 9 ماه پیش
والد
کامیت
9360a07e5c

+ 5 - 5
business-common/src/main/java/com/rongwei/bscommon/sys/service/impl/ZhcxInspectionReportManageServiceImpl.java

@@ -90,13 +90,13 @@ public class ZhcxInspectionReportManageServiceImpl extends ServiceImpl<ZhcxInspe
                             for (int i = 0; i < collect.size(); i++) {
                                 int length = collect.get(i).getValue().length();
                                 int i1 = maxLength - length;
-                                String join = String.join("", Collections.nCopies(i1, " "));
+                                String join = String.join("", Collections.nCopies(i1, "\u3000"));
                                 if (collect.get(i).getValue().equals(value)) {
-                                    textValue.append("  R ").append(collect.get(i).getValue()).append(join);
+                                    textValue.append("  ☑ ").append(collect.get(i).getValue()).append(join);
                                 } else {
-                                    textValue.append("  £ ").append(collect.get(i).getValue()).append(join);
+                                    textValue.append("  ☐ ").append(collect.get(i).getValue()).append(join);
                                 }
-                                if((i+1) % 5 == 0){
+                                if((i+1) % 5 == 0 && (i+1) != collect.size()){
                                     textValue.append("\n");
                                 }
                             }
@@ -112,7 +112,7 @@ public class ZhcxInspectionReportManageServiceImpl extends ServiceImpl<ZhcxInspe
 
                             // 设置字体
                             Font font = style.getFont();
-                            font.setName("Wingdings 2");
+                            font.setName("Segoe UI Symbol");
                             font.setSize(10);
                             cell.setStyle(style);
                             cell.putValue(textValue);