DifyEntrance.java
1.91 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
package com.bsth.data.zndd.dify;
import com.bsth.data.BasicData;
import com.bsth.service.zndd.LoggerZnddService;
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 java.util.Collection;
import java.util.List;
import java.util.Map;
/**
* dify的各种接口
*/
@RestController
@RequestMapping("/difyinter")
public class DifyEntrance {
@Autowired
LoggerZnddService loggerZnddService;
/**
* schDeepSeep查询班次情况
* @param
* @return
*/
@RequestMapping(value = "schDeepSeep", method = RequestMethod.GET)
public Map schDeepSeep(@RequestParam String message){
return loggerZnddService.schDeepSeep(message);
}
@RequestMapping(value = "lineyd", method = RequestMethod.GET)
//线路是否拥堵
public String line_yd(String message){
return loggerZnddService.line_yd(message);
}
//线路数量
@RequestMapping(value = "lineNum", method = RequestMethod.GET)
public Collection<String> LineNum(){
return BasicData.lineCode2NameMap.values();
}
//班次执行详情
@RequestMapping(value = "linezd", method = RequestMethod.GET)
public List line_zd(Integer status){
return loggerZnddService.line_zd(status);
}
//昨天XX路准点率 查出昨日所有不准点的原因
@RequestMapping(value = "linezdRemark", method = RequestMethod.GET)
public String line_zd_remark(String message){
return loggerZnddService.line_zd_remark(message);
}
@RequestMapping(value = "export", method = RequestMethod.GET)
public String exportWaybillAll(String message){
return loggerZnddService.exportWaybillAll(message);
}
}