StationController.java
1.34 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
package com.bsth.controller;
import java.util.Map;
import org.hibernate.annotations.Parameter;
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.alibaba.fastjson.JSONArray;
import com.bsth.entity.Station;
import com.bsth.service.StationService;
/**
*
* @ClassName: StationController(站点控制器)
*
* @Extends : BaseController
*
* @Description: TODO(站点控制层)
*
* @Author bsth@lq
*
* @Date 2016年05月03日 上午9:21:17
*
* @Version 公交调度系统BS版 0.1
*
*/
@RestController
@RequestMapping("station")
public class StationController extends BaseController<Station, Integer> {
@Autowired
private StationService service;
@RequestMapping(value="collection" , method = RequestMethod.POST)
public Map<String, Object> collection(@RequestParam Map<String, Object> map) {
String strJSON = map.get("json").toString().equals("") ? "" : map.get("json").toString();
if(!strJSON.equals("")) {
JSONArray stationsArray = JSONArray.parseArray(strJSON);
}
return null;
}
}