StationService.java 1.82 KB
package com.bsth.service;

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

import com.bsth.entity.LsSectionRoute;
import com.bsth.entity.LsStationRoute;
import com.bsth.entity.Station;

/**
 * 
 * @Interface: StationService(站点service业务层实现接口)
 * 
 * @extends : BaseService
 * 
 * @Description: TODO(站点service业务层实现接口)
 * 
 * @Author bsth@lq
 * 
 * @Date 2016年05月03日 上午9:21:17
 *
 * @Version 公交调度系统BS版 0.1
 * 
 */
public interface StationService extends BaseService<Station, Integer> {
	
	/**
	 * @Description :TODO(系统规划保存数据)
	 * 
	 * @param map <stationJSON:站点信息; sectionJSON:路段信息;dbType:坐标类型; destroy:是否撤销; directions:方向;lineId:线路ID;
	 * 
	 * 			   radius:圆半径;shapesType:图形类型;speedLimit:限速>
	 * 
	 * @return Map<String, Object> <SUCCESS ; ERROR>
	 */
	Map<String, Object> systemSaveStations(Map<String, Object> map);

	/**
	 * 保存线路某个版本下单行的站点和路段路由
	 * 常规使用在根据百度地图生成数据或者模板导入的批量保存
	 * @param lineId
	 * @param versions
	 * @param directions
	 * @param stationRoutes
	 * @param sectionRoutes
	 * @return
	 */
	Map<String, Object> saveRoutes(Integer lineId, Integer versions, Integer directions, List<LsStationRoute> stationRoutes, List<LsSectionRoute> sectionRoutes);

	/**
	 * 更新站点、站点路由信息
	 * @param stationRoute
	 */
	void stationUpdate(LsStationRoute stationRoute);
	
	/**
	 * @Description :TODO(根据坐标点匹配数据库中的站点)
	 *
	 * @param map: <point:坐标点; name:站点名>
	 *
	 */
	void matchStation(List<Station> stations);

	/**
	 * 根据站名模糊查询匹配站点
	 * @param stationName
	 * @return
	 */
	List<Station> getStationByName(String stationName);
}