jichaobo 3 роки тому
батько
коміт
4dc6d6aa2a

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

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