BusinessController.java
987 Bytes
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
package com.bsth.controller;
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.RestController;
import com.bsth.entity.Business;
import com.bsth.service.BusinessService;
import com.bsth.util.GetUIDAndCode;
/**
*
* @ClassName: LineController(公司控制器)
*
* @Extends : BaseController
*
* @Description: TODO(公司控制层)
*
* @Author bsth@lq
*
* @Date 2016-4-28 9:21:17
*
* @Version 公交调度系统BS版 0.1
*
*/
@RestController
@RequestMapping("business")
public class BusinessController extends BaseController<Business, Integer> {
@Autowired
private BusinessService businessService;
@RequestMapping(value = "getCompCode", method = RequestMethod.GET)
public long getLineCode() {
return businessService.getCompCode();
}
}