Commit 858fd839aae9f3f0339076110eed5f6dc1e64f55

Authored by 潘钊
1 parent 52cf1396

新增一个对外接口...

src/main/java/com/bsth/controller/realcontrol/ServiceDataInterface.java
... ... @@ -236,4 +236,21 @@ public class ServiceDataInterface {
236 236 }
237 237 return rs;
238 238 }
  239 +
  240 + /**
  241 + * 获取路牌下所有班次
  242 + * @param lineCode
  243 + * @param lpName
  244 + * @return
  245 + */
  246 + @RequestMapping("/findByLpName")
  247 + public List<ScheduleRealInfo> findByLpName(@RequestParam String lineCode,@RequestParam String lpName){
  248 + try{
  249 + List<ScheduleRealInfo> list = dayOfSchedule.getLpScheduleMap().get(lineCode + "_" + lpName);
  250 + return list;
  251 + }catch (Exception e){
  252 + logger.error("", e);
  253 + }
  254 + return null;
  255 + }
239 256 }
... ...