Browse Source

通信设备导入4

jichaobo 3 năm trước cách đây
mục cha
commit
42e962b185

+ 5 - 4
fiveep-service/src/main/java/com/bizmatics/service/impl/DeviceServiceImpl.java

@@ -508,16 +508,17 @@ public class DeviceServiceImpl extends AbstractCrudService<DeviceMapper, Device>
 //                        err="文件导入失败,第"+rot+"行数据导入失败";
 
 //                    }
+                    err="文件导入失败,第"+rot+1+"行数据导入失败";
                     rot++;
-                    throw  new BusinessException("文件导入失败,第"+rot+"行数据导入失败");
+//                    throw  new BusinessException("文件导入失败,第"+rot+"行数据导入失败");
                 }
             }else {
-//                err="文件不能为空";
-                throw new BusinessException("文件不能为空");
+                err="文件不能为空";
+//                throw new BusinessException("文件不能为空");
             }
         }catch (Exception e){
             TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
-            throw  new BusinessException("文件导入失败");
+            throw  new BusinessException(err);
         }
     }