Commit 7badce4d authored by wujipeng's avatar wujipeng
Browse files

优化

parent e7710c89
...@@ -109,7 +109,7 @@ public class RoadServiceImpl extends ServiceImpl<RoadMapper, RoadEntity> impleme ...@@ -109,7 +109,7 @@ public class RoadServiceImpl extends ServiceImpl<RoadMapper, RoadEntity> impleme
} }
} }
if (relIds.isEmpty()) { if (relIds.isEmpty()) {
return Result.error("未找到该名称的路段"); return Result.success(result);
} }
if ("检测".equals(roadDTO.getType())) { if ("检测".equals(roadDTO.getType())) {
List<DefectEntity> defectList = defectService.queryByRoadName(relIds, roadDTO.getLev()); List<DefectEntity> defectList = defectService.queryByRoadName(relIds, roadDTO.getLev());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment