InOutScheduleController.java
1.46 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
package com.bsth.controller.schedule;
import com.bsth.data.schedule.dto.ScheduleInOut;
import com.bsth.service.schedule.ScheduleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.util.Collection;
import java.util.List;
import java.util.Map;
/**
* Created by panzhao on 2017/9/4.
*/
@RestController
@RequestMapping("in_out")
public class InOutScheduleController {
@Autowired
ScheduleService inOutScheduleService;
@RequestMapping("all")
public Collection<ScheduleInOut> all(){
return inOutScheduleService.findAll();
}
@RequestMapping("all_out")
public List<ScheduleInOut> all_out(){
return inOutScheduleService.all_out();
}
@RequestMapping("findOutByIdx")
public List<ScheduleInOut> findOutByIdx(@RequestParam String idx){
return inOutScheduleService.findOutByIdx(idx);
}
@RequestMapping("findAbnormalByLineArray")
public Map<String, Object> findAbnormalByLineArray(@RequestParam String idx){
return inOutScheduleService.findAbnormalByLineArray(idx);
}
@RequestMapping("findSchByLpName")
public Map<String, Object> findSchByLpName(@RequestParam String lineCode, @RequestParam String lpName){
return inOutScheduleService.findSchByLpName(lineCode, lpName);
}
}