Browse Source

设备导入

lin 3 years ago
parent
commit
0a1ba485e2

+ 1 - 1
zoniot-rmcp/zoniot-rmcp-web/src/main/java/com/zcxk/rmcp/web/excel/resolver/listener/DeviceImportListener.java

@@ -35,7 +35,6 @@ public class DeviceImportListener extends AnalysisEventListener<DeviceImportData
 
     @Override
     public void invoke(DeviceImportData data, AnalysisContext analysisContext) {
-        log.info("begin DeviceImportListener data = {}",JSON.toJSONString(data));
         try {
             if (Utils.checkObjFieldIsNull(data)
             ) {
@@ -44,6 +43,7 @@ public class DeviceImportListener extends AnalysisEventListener<DeviceImportData
         } catch (IllegalAccessException e) {
             e.printStackTrace();
         }
+        log.info("begin DeviceImportListener data = {}",JSON.toJSONString(data));
         if (
                 data.getDeviceNo() == null || data.getDeviceTypeName() == null
                         || data.getMeterNo() == null || data.getCompanyOrgName() == null

+ 1 - 1
zoniot-rmcp/zoniot-rmcp-web/src/main/java/com/zcxk/rmcp/web/util/Utils.java

@@ -12,7 +12,7 @@ public class Utils {
         boolean flag = true;
         for(Field f : obj.getClass().getDeclaredFields()){
             f.setAccessible(true);
-            if(f.get(obj) == null){
+            if(f.get(obj) != null){
                 flag = false;
                 return flag;
             }