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