BusinessController.java 987 Bytes
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();
	}
}