|
|
|
@ -1,6 +1,7 @@ |
|
|
|
package org.springblade.modules.business.service.impl; |
|
|
|
package org.springblade.modules.business.service.impl; |
|
|
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
|
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.springblade.core.log.exception.ServiceException; |
|
|
|
import org.springblade.core.log.exception.ServiceException; |
|
|
|
import org.springblade.core.mp.base.BaseServiceImpl; |
|
|
|
import org.springblade.core.mp.base.BaseServiceImpl; |
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
@ -31,6 +32,7 @@ import java.util.stream.Collectors; |
|
|
|
* @author chents |
|
|
|
* @author chents |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Service |
|
|
|
@Service |
|
|
|
|
|
|
|
@Slf4j |
|
|
|
public class StationHintServiceImpl extends BaseServiceImpl<BusLineMapper, BusLine> implements IStationHintService { |
|
|
|
public class StationHintServiceImpl extends BaseServiceImpl<BusLineMapper, BusLine> implements IStationHintService { |
|
|
|
|
|
|
|
|
|
|
|
@Resource |
|
|
|
@Resource |
|
|
|
@ -138,12 +140,13 @@ public class StationHintServiceImpl extends BaseServiceImpl<BusLineMapper, BusLi |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public List<BusLine> getBusLineByName(String name) { |
|
|
|
public BusLine getBusLineByName(String name,String weizhi) { |
|
|
|
QueryWrapper<BusLine> busLineQueryWrapper = new QueryWrapper<>(); |
|
|
|
QueryWrapper<BusLine> busLineQueryWrapper = new QueryWrapper<>(); |
|
|
|
busLineQueryWrapper.select("id"); |
|
|
|
busLineQueryWrapper.select("id"); |
|
|
|
busLineQueryWrapper.eq("sname_key", name); |
|
|
|
busLineQueryWrapper.eq("sname_key", name); |
|
|
|
List<BusLine> busLines = busLineMapper.selectList(busLineQueryWrapper); |
|
|
|
busLineQueryWrapper.eq("location", weizhi); |
|
|
|
return busLines; |
|
|
|
BusLine busLine = busLineMapper.selectOne(busLineQueryWrapper); |
|
|
|
|
|
|
|
return busLine; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|