DifyEntrance.java 1.84 KB
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);
    }


    public String exportWaybillAll(String  message){
        return loggerZnddService.exportWaybillAll(message);
    }


}