SectionRouteController.java
4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
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.entity.StationRouteCache;
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;
/**
* @param String
* @throws
* @Description: TODO(批量撤销路段)
*/
@RequestMapping(value = "/batchDestroy", method = RequestMethod.GET)
public Map<String, Object> updateBatch(@RequestParam Map<String, Object> map) {
return routeService.updateSectionRouteInfoFormId(map);
}
/**
* @param @param map
* @throws
* @Title: list
* @Description: TODO(多条件查询)
*/
@RequestMapping(value = "/all", method = RequestMethod.GET)
public Iterable<SectionRoute> list(@RequestParam Map<String, Object> map) {
return routeService.list(map);
}
@RequestMapping(value = "/cacheList", method = RequestMethod.GET)
public List<StationRouteCache> cacheList(@RequestParam Map<String, Object> map) {
// routeService.cacheList(map)
return null;
}
/**
* @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(查询路段信息)
*
* @param map <line.id_eq:线路ID; directions_eq:方向>
*
* @return Map<String, Object>
*/
@RequestMapping(value = "/findCacheSection" , method = RequestMethod.GET)
public List<Map<String, Object>> getSectionRouteCache(@RequestParam Map<String, Object> map) {
return routeService.getSectionRouteCache(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);
}
/**
* @Description :TODO(查询线路某方向下的上一个路段序号)
*
* @param map <lineId:线路ID; direction:方向;sectionRouteCode:路段编码>
*
* @return List<Map<String, Object>>
*/
@RequestMapping(value = "/findUpSectionRouteCode" , method = RequestMethod.GET)
public List<Map<String, Object>> findUpStationRouteCode(@RequestParam Map<String, Object> map) {
return routeService.findUpSectionRouteCode(map);
}
@RequestMapping(value = "/findCacheUpSectionRouteCode" , method = RequestMethod.GET)
public List<Map<String, Object>> findCacheUpSectionRouteCode(@RequestParam Map<String, Object> map) {
return routeService.findCacheUpSectionRouteCode(map);
}
/**
* @Description :TODO(引用路段)
*
* @return List<Map<String, Object>>
*/
@RequestMapping(value = "/quoteSection" , method = RequestMethod.POST)
public Map<String, Object> quoteSection(@RequestParam Map<String, Object> map) {
return routeService.quoteSection(map);
}
}