TrafficManageController.java
4.88 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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
package com.bsth.controller.schedule;
import com.bsth.service.TrafficManageService;
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;
/**
*
* @author BSTH
*
*/
@RestController
@RequestMapping("trmg")
public class TrafficManageController {
@Autowired
private TrafficManageService trManageService;
@RequestMapping(value = "/setXL", method = RequestMethod.GET)
public String setXL(@RequestParam("ids") String ids) throws Exception {
try {
return trManageService.setXL(ids);
} catch (Exception exp) {
throw new Exception(exp.getCause());
}
}
@RequestMapping(value = "/setXLByInUse", method = RequestMethod.GET)
public String setXLByInUse(@RequestParam("inUse") String inUse) throws Exception {
try {
return trManageService.setXLByInUse(inUse);
} catch (Exception exp) {
throw new Exception(exp.getCause());
}
}
@RequestMapping(value = "/setCL", method = RequestMethod.GET)
public String setCL() throws Exception {
try {
return trManageService.setCL();
} catch (Exception exp) {
throw new Exception(exp.getCause());
}
}
@RequestMapping(value = "/setSJ", method = RequestMethod.GET)
public String setSJ() throws Exception {
try {
return trManageService.setSJ();
} catch (Exception exp) {
throw new Exception(exp.getCause());
}
}
@RequestMapping(value = "/setLD", method = RequestMethod.GET)
public String setLD() throws Exception {
try {
return trManageService.setLD();
} catch (Exception exp) {
throw new Exception(exp.getCause());
}
}
@RequestMapping(value = "/setLDByDate", method = RequestMethod.GET)
public String setLDByDate(@RequestParam("theDate") String theDate) throws Exception {
try {
return trManageService.setLD(theDate);
} catch (Exception exp) {
throw new Exception(exp.getCause());
}
}
@RequestMapping(value = "/setLDFile", method = RequestMethod.GET)
public String setLDFile() throws Exception {
try {
return trManageService.setLDFile();
} catch (Exception exp) {
throw new Exception(exp.getCause());
}
}
@RequestMapping(value = "/setLCYH", method = RequestMethod.GET)
public String setLCYH() throws Exception {
try {
return trManageService.setLCYH();
} catch (Exception exp) {
throw new Exception(exp.getCause());
}
}
@RequestMapping(value = "/setDDRB", method = RequestMethod.GET)
public String setDDRB() throws Exception {
try {
return trManageService.setDDRB();
} catch (Exception exp) {
throw new Exception(exp.getCause());
}
}
@RequestMapping(value = "/setJHBC", method = RequestMethod.GET)
public String setJHBC() throws Exception {
try {
return trManageService.setJHBC();
} catch (Exception exp) {
throw new Exception(exp.getCause());
}
}
@RequestMapping(value = "/setJHBCByDate", method = RequestMethod.GET)
public String setJHBCByDate(@RequestParam("theDate") String theDate) throws Exception {
try {
return trManageService.setJHBC(theDate);
} catch (Exception exp) {
throw new Exception(exp.getCause());
}
}
@RequestMapping(value = "/setSKB", method = RequestMethod.GET)
public String setSKB(@RequestParam("ids") String ids, @RequestParam("qyrqs") String qyrqs) throws Exception {
try {
return trManageService.setSKB(ids, qyrqs);
} catch (Exception exp) {
throw new Exception(exp.getCause());
}
}
@RequestMapping(value = "/setXLPC", method = RequestMethod.GET)
public String setXLPC() throws Exception {
try {
return trManageService.setXLPC();
} catch (Exception exp) {
throw new Exception(exp.getCause());
}
}
@RequestMapping(value = "/setCS", method = RequestMethod.GET)
public String setCS() throws Exception {
try {
return trManageService.setCS();
} catch (Exception exp) {
throw new Exception(exp.getCause());
}
}
@RequestMapping(value = "/getDownLoadAllDataFile", method = RequestMethod.GET)
public String getDownLoadAllDataFile() throws Exception {
try {
return trManageService.getDownLoadAllDataFile();
} catch (Exception exp) {
throw new Exception(exp.getCause());
}
}
}