package com.weiqi.mis.contorller;

import com.weiqi.mis.MsgService;
import com.weiqi.mis.PushService;
import com.weiqi.vo.OrderInfoVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 下发查询
 */
@Controller
@RequestMapping(value = "api/aync")
@Slf4j
public class CarApiController {

    @Autowired
    PushService pushService;


    /**
     * 获取同步
     *
     * @return
     */
    @RequestMapping(value = "/order")
    @ResponseBody
    public Object sync(int id) {

        log.info("id= {}", id);
        return pushService.pushorder(id);
    }

}
