Browse Source

导入优化

guarantee-lsq 2 years ago
parent
commit
21ba4c68d3

+ 1 - 1
platform-office/src/main/java/com/platform/office/poi/excel/imports/CellValueServer.java

@@ -235,7 +235,7 @@ public class CellValueServer {
                 return Boolean.valueOf(String.valueOf(result));
             }
             if ("class java.lang.Double".equals(xclass) || "double".equals(xclass)) {
-                if(result == null || result == ""){
+                if(result == null || result == "" || "".equals(result)){
                     result = 0.0d;
                 }
                 return Double.valueOf(String.valueOf(result));

+ 0 - 12
platform-service/src/main/java/com/platform/service/repair/strategy/impl/LongYanRepairStrategy.java

@@ -209,18 +209,6 @@ public class LongYanRepairStrategy extends AbstractRepairBaseStrategy {
         }
         return sbPositionMapper.getById(positionId).getUserId();
     }
-
-    public static void main(String[] args) {
-        LocalDateTime now = LocalDateTime.now();
-        LocalDateTime startTime = LocalDateTime.of(now.getYear(),now.getMonthValue(),now.getDayOfMonth(),18,00,00);
-        LocalDateTime second = now.plusDays(1);
-        LocalDateTime endTime = LocalDateTime.of(second.getYear(),second.getMonthValue(),second.getDayOfMonth(),8,00,00);
-        System.out.println(startTime);
-        System.out.println(endTime);
-        System.out.println(now.isAfter(startTime));
-        System.out.println(now.isBefore(endTime));
-    }
-
     /**
      * 获取当前用户的角色集合
      * @return