Przeglądaj źródła

通信设备导入5

jichaobo 3 lat temu
rodzic
commit
0bde7fc6ff

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

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