|
@@ -505,15 +505,15 @@ public class DeviceServiceImpl extends AbstractCrudService<DeviceMapper, Device>
|
|
|
deviceStatus.setSiteId(siteId);
|
|
|
deviceStatusService.save(deviceStatus);
|
|
|
}catch (Exception e){
|
|
|
- err="文件导入失败,第"+rot+1+"行数据导入失败";
|
|
|
- throw new BusinessException("文件导入失败,第"+rot+"行数据导入失败");
|
|
|
-
|
|
|
+ int h=rot+2;
|
|
|
+ err="文件导入失败,第"+h+"行数据导入失败";
|
|
|
+ throw new BusinessException(err);
|
|
|
}
|
|
|
rot++;
|
|
|
}
|
|
|
}else {
|
|
|
err="文件不能为空";
|
|
|
- throw new BusinessException("文件不能为空");
|
|
|
+ throw new BusinessException(err);
|
|
|
}
|
|
|
}catch (Exception e){
|
|
|
TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
|