LineController.java
1.05 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
package com.bsth.controller.basic;
import com.bsth.service.basic.LineService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.util.Map;
/**
* Created by panzhao on 2017/8/1.
*/
@RestController
@RequestMapping("line")
public class LineController {
@Autowired
LineService lineService;
@RequestMapping("list")
public Map<String, Object> list(@RequestParam Map<String, Object> map,
@RequestParam(defaultValue = "0") int page,
@RequestParam(defaultValue = "10") int size){
return lineService.list(map, page, size);
}
@RequestMapping("all")
public Map<String, Object> all(){
return lineService.all();
}
@RequestMapping("curr_company")
public Map<String, Object> findByCompany(){
return lineService.findByCompany();
}
}