LoggerZnddController.java
1.42 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
package com.bsth.controller.zndd;
import com.bsth.controller.BaseController;
import com.bsth.entity.realcontrol.ScheduleRealInfo;
import com.bsth.entity.zndd.LoggerZndd;
import com.bsth.service.zndd.LoggerZnddService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
import java.util.Map;
@RestController
@RequestMapping("logZndd")
public class LoggerZnddController extends BaseController<LoggerZndd, Integer> {
@Autowired
LoggerZnddService loggerZnddService;
@RequestMapping("listall")
public List<Map<String, Object>> listAll(@RequestParam Map<String, Object> map){
return loggerZnddService.listAll(map);
}
@RequestMapping(value = "/schlist", method = RequestMethod.POST)
public ScheduleRealInfo schlist(@RequestParam String lineCode,@RequestParam Integer dir){
return loggerZnddService.schlist(lineCode,dir);
}
@RequestMapping(value = "/znddConfig", method = RequestMethod.POST)
public Map<String, Object> znddConfig(@RequestParam Map<String, Object> map){
return loggerZnddService.znddConfig(map);
}
/**
* 智能调度大间隔临加班次
* @param id
* @return
*/
@RequestMapping(value = "thissch/{id}", method = RequestMethod.POST)
public ScheduleRealInfo thissch(@PathVariable("id") Integer id){
return loggerZnddService.thissch(id);
}
}