YlxxbController.java
1.29 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
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;
}
}