StationRouteService.java 4.6 KB
package com.bsth.service;

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

import javax.servlet.http.HttpServletResponse;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import com.bsth.entity.LsStationRoute;
import com.bsth.entity.StationRoute;
import com.bsth.entity.StationRouteCache;

/**
 * 
 * @Interface: StationRouteService(站点路由service业务层实现接口)
 * 
 * @Extends : BaseService
 * 
 * @Description: TODO(站点路由service业务层实现接口)
 * 
 * @Author bsth@lq
 * 
 * @Date 2016年5月03日 上午9:21:17
 *
 * @Version 公交调度系统BS版 0.1
 * 
 */
public interface StationRouteService extends BaseService<StationRoute, Integer> {

    /**
     * 历史查询。
     * @param map
     * @return
     */
    Iterable<StationRoute> list_ls(Map<String, Object> map);

	/**
	 * 
	 * @Title: list 
	 * @Description: TODO(多条件查询) 
	 * @throws
	 */
	Iterable<StationRoute> list(Map<String, Object> map);
	
	List<StationRouteCache> cacheList(Map<String, Object> map);
	
	/**
	 * @Description : TODO(根据路段站点Id批量撤销站点)
	 * 
	 * @param  map <id:站点路由ID> 
	 * 
	 * @return List<Map<String, Object>>
	 */
	Map<String, Object> updateStationRouteInfoFormId(Map<String, Object> map);
	
	/**
	 * @Description :TODO(查询树站点与路段数据)
	 * 
	 * @param map <line.id_eq:线路ID; directions_eq:方向>
	 * 
	 * @return List<Map<String, Object>>
	 */
	 List<Map<String, Object>> findPoints(Map<String, Object> map);
	 
	 Map<String, Object> systemQuote(Map<String, Object> map);
	 
	 /**
	  * @Description :TODO(查询线路某方向下的站点序号与类型)
	  * 
	  * @param map <lineId:线路ID; direction:方向;stationRouteCode:站点编码>
	  * 
	  * @return List<Map<String, Object>> 
	  */
	 List<Map<String, Object>> findUpStationRouteCode(Map<String, Object> map);

	 List<Map<String, Object>> findCacheUpStationRouteCode(Map<String, Object> map);

	/**
	 * @Description :TODO(查询下一个站点)
	 *
	 * @param map <站点路由id; direction:方向;stationRouteCode:站点编码>
	 *
	 * @return List<Map<String, Object>>
	 */
	List<Map<String, Object>> findDownStationRoute(Map<String, Object> map);

	 /**
	  * @Description :TODO(查询线路某方向下所有站点的中心百度坐标)
	  * 
	  * @param map <lineId:线路ID; direction:方向>
	  * 
	  * @return List<Map<String, Object>> 
	  */
	 List<Map<String, Object>> getStationRouteCenterPoints(Map<String, Object> map);

	/**
	 * @Description :TODO(查询线路某方向下所有站点)
	 *
	 * @param map <lineId:线路ID; direction:方向>
	 *
	 * @return List<Map<String, Object>>
	 */
	 List<Map<String, Object>> getStationRouteList(Map<String, Object> map);
	 
	 /**
	  * @Description :TODO(撤销站点)
	  * 
	  * @param map <lineId:线路ID; destroy:是否撤销(0:否;1:是)>
	  * 
	  * @return Map<String, Object> <SUCCESS ; ERROR>
	  */
	 Map<String, Object> stationRouteIsDestroy(Map<String, Object> map);
	 

	List<Map<String, Object>> getStationRouteCacheCenterPoints(Map<String, Object> map);
		
	 /**
	  * @Description : TODO(根据线路ID生成行单)
	  * 
	  * @param map <id:线路ID>
	  * 
	  * @return Map<String, Object> <SUCCESS ; ERROR ; NOTDATA>
	  */
	 Map<String, Object> usingSingle(Map<String, Object> map);
	 
	 
	 /**
	  * @Description : TODO(根据站点路由Id查询详情)
	  * 
	  * @param  map <id:站点路由ID> 
	  * 
	  * @return List<Map<String, Object>>
	  */
	 List<Map<String, Object>> findStationRouteInfo(Map<String, Object> map);

	 Map<String, Object> findByMultiLine(String lineIds);
	 
	 Map<String, Object> updSwitchDir(String lineIds,int stauts);
	 
	 Map<String, Object> upddis(Map<String, Object> map);

	/**
	 * @param id
	 * @return
	 */
	Map<String, Object> getSectionRouteExport(Integer id, HttpServletResponse resp);

	void batchUpdate(Integer lineId, String lineCode);
	
	/**
	 * @Description :TODO(查询缓存站点信息)
	 * 
	 * @param map <line.id_eq:线路ID; directions_eq:方向>
	 * 
	 * @return List<Map<String, Object>>
	 */
	List<Map<String, Object>> findCachePoint(int lineId, int dir);

	Map<String, Object> findMatchStation(Map<String, Object> map);

	Map<String, Object> updIndustryCode(Map<String, Object> map);

	Map<String, Object> matchIndustryCode(Map<String, Object> map);

	Map<String, Object> matchNearbyStation(Map<String, Object> map);

	Map pageLs(Map<String, Object> map);
}