瀏覽代碼

通信设备导入4

jichaobo 3 年之前
父節點
當前提交
42e962b185
共有 1 個文件被更改,包括 5 次插入4 次删除
  1. 5 4
      fiveep-service/src/main/java/com/bizmatics/service/impl/DeviceServiceImpl.java

+ 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);
         }
     }