|
|
@@ -863,6 +863,7 @@ public class BCourseInfoServiceImpl extends ServiceImpl<BCourseInfoMapper, BCour
|
|
|
List<FindResultDto> result = CollectionUtil.newArrayList();
|
|
|
QueryWrapper<BCourseInfoPo> queryWrapper = new QueryWrapper<>();
|
|
|
queryWrapper.like("course_name", name);
|
|
|
+ queryWrapper.eq("status", "0");
|
|
|
List<BCourseInfoPo> list = bCourseInfoMapper.selectList(queryWrapper);
|
|
|
if(CollectionUtil.isNotEmpty(list)) {
|
|
|
for (BCourseInfoPo bCourseInfoPo : list) {
|
|
|
@@ -870,6 +871,11 @@ public class BCourseInfoServiceImpl extends ServiceImpl<BCourseInfoMapper, BCour
|
|
|
dto2.setId(bCourseInfoPo.getId());
|
|
|
dto2.setName(bCourseInfoPo.getCourseName());
|
|
|
dto2.setType("0");
|
|
|
+ dto2.setFirstStationName(bCourseInfoPo.getFirstStationName());
|
|
|
+ dto2.setFirstStationId(bCourseInfoPo.getFirstStationId());
|
|
|
+ dto2.setLastStationName(bCourseInfoPo.getLastStationName());
|
|
|
+ dto2.setLastStationId(bCourseInfoPo.getLastStationId());
|
|
|
+ dto2.setFirstBusSpace(bCourseInfoPo.getFirstBusSpace());
|
|
|
result.add(dto2);
|
|
|
}
|
|
|
}
|
|
|
@@ -881,12 +887,16 @@ public class BCourseInfoServiceImpl extends ServiceImpl<BCourseInfoMapper, BCour
|
|
|
List<FindResultDto> result1 = CollectionUtil.newArrayList();
|
|
|
QueryWrapper<BStationInfoPo> queryWrapper2 = new QueryWrapper<>();
|
|
|
queryWrapper2.like("name", name);
|
|
|
+ queryWrapper2.eq("station_status", 0);
|
|
|
List<BStationInfoPo> list2 = bStationInfoService.list(queryWrapper2);
|
|
|
if(CollectionUtil.isNotEmpty(list2)) {
|
|
|
for (BStationInfoPo bStationInfoPo : list2) {
|
|
|
FindResultDto dto = new FindResultDto();
|
|
|
dto.setId(bStationInfoPo.getId());
|
|
|
dto.setName(bStationInfoPo.getName());
|
|
|
+ dto.setDetailAddress(bStationInfoPo.getDetailAddress());
|
|
|
+ dto.setLatitude(bStationInfoPo.getLatitude());
|
|
|
+ dto.setLongitude(bStationInfoPo.getLongitude());
|
|
|
dto.setType("1");
|
|
|
result1.add(dto);
|
|
|
}
|