Browse Source

修改bug

JX.Li 1 year ago
parent
commit
848df15ca1

+ 2 - 0
ruoyi-gas/src/main/java/com/ruoyi/gas/service/impl/GAreaServiceImpl.java

@@ -96,6 +96,7 @@ public class GAreaServiceImpl extends ServicePlusImpl<GAreaMapper, GArea, GAreaV
                             building.setCreateBy(operName);
                             building.setCreateTime(new Date());
                             gBuildingMapper.insert(building);
+                            successNum++;
                         } else {
                             throw new ServiceException("" + "第" + (n + 1) + "行格式错误,导入失败!");
                         }
@@ -110,6 +111,7 @@ public class GAreaServiceImpl extends ServicePlusImpl<GAreaMapper, GArea, GAreaV
                                 building.setCreateBy(operName);
                                 building.setCreateTime(new Date());
                                 gBuildingMapper.insert(building);
+                                successNum++;
                             }
                         } else {
                             throw new ServiceException("" + "第" + (n + 1) + "行格式错误,导入失败!");