SectionRouteController.java 1.72 KB
package com.bsth.controller;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.bsth.entity.SectionRoute;
import com.bsth.service.SectionRouteService;

/**
 * 
 * @ClassName: SectionRouteController(路段路由控制器)
 * 
 * @Extends : BaseController
 * 
 * @Description: TODO(路段路由控制层)
 * 
 * @Author bsth@lq
 * 
 * @Date 2016年05月03日 上午9:21:17
 *
 * @Version 公交调度系统BS版 0.1
 * 
 */

@RestController
@RequestMapping("sectionroute")
public class SectionRouteController extends BaseController<SectionRoute, Integer> {
	
	@Autowired
	SectionRouteService routeService;
	
	/**
	 * @Description :TODO(查询路段信息)
	 * 
	 * @param map <line.id_eq:线路ID; directions_eq:方向>
	 * 
	 * @return Map<String, Object> 
	 */
	@RequestMapping(value = "/findSection" , method = RequestMethod.GET)
	public  List<Map<String, Object>> findPoints(@RequestParam Map<String, Object> map) {
		return routeService.getSectionRoute(map);
	}
	
	
	/**
	 * @Description : TODO(根据路段路由Id查询详情)
	 * 
	 * @param  map <id:路段路由ID> 
	 * 
	 * @return List<Map<String, Object>>
	 */
	@RequestMapping(value = "/findSectionRouteInfoFormId",method = RequestMethod.GET)
	public List<Map<String, Object>> findSectionRouteInfoFormId(@RequestParam Map<String, Object> map) {
		
		return routeService.findSectionRouteInfoFormId(map);
	}
}