Browse Source

优化导入工具

tanzhongran 3 years ago
parent
commit
16c6327683

+ 4 - 2
abi-cloud-qr-platform-common/src/main/java/com/abi/task/common/excel/ExcelInputFactory.java

@@ -157,9 +157,11 @@ public class ExcelInputFactory {
 
                         }
                     }
-                    Method method = methodCache.get(fieldName);
                     //调用method
-                    method.invoke(t,String.valueOf(value));
+                    if(value!=null){
+                        Method method = methodCache.get(fieldName);
+                        method.invoke(t,String.valueOf(value));
+                    }
                 }
                 excelPojoList.add(t);
             }catch(Exception e){