ODController.java 883 Bytes
package com.bsth.controller.od;

import com.bsth.controller.BaseController;
import com.bsth.entity.CarPark;
import com.bsth.service.od.ODService;
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.Map;


@RestController
@RequestMapping("ODInfo")
public class ODController extends BaseController<CarPark, Integer> {
	@Autowired
	ODService odService;
	

	@RequestMapping(value="odTable" , method = RequestMethod.GET)
	public Map<String, Object> odTable(@RequestParam("lineCode")String lineCode, @RequestParam("dir")int dir, @RequestParam("date")String date) {
		return odService.a(lineCode,dir,date);
	}

}