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