YlxxbController.java 1.29 KB
package com.bsth.controller.oil;

import java.util.Map;

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 com.bsth.controller.BaseController;
import com.bsth.entity.oil.Ylxxb;
import com.bsth.service.oil.YlxxbService;
import com.bsth.util.PageObject;

@RestController
@RequestMapping("ylxxb")
public class YlxxbController extends BaseController<Ylxxb, Integer>{
	@Autowired
	private YlxxbService service;
	@RequestMapping(value = "/pagequery",method = RequestMethod.GET)
	public PageObject<Ylxxb> pagequery(@RequestParam Map<String, Object> map){
		PageObject<Ylxxb> pagequery=null;
		map.put("curPage", map.get("page").toString());
		map.put("pageData","10");
		pagequery=service.Pagequery(map);
		return pagequery;
	}
	
	
	/**
	 * 核对油量(有加油没里程)
	 * @param map
	 * @return
	 */
	@RequestMapping(value = "/check",method = RequestMethod.GET)
	public Map<String, Object> check(@RequestParam Map<String, Object> map){
		Map<String, Object> list=service.checkJsy(map);
		return list;
	}
}