BusinessServiceImpl.java 862 Bytes
package com.bsth.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bsth.entity.Business;
import com.bsth.repository.BusinessRepository;
import com.bsth.service.BusinessService;

/**
 * 
 * @ClassName: BusinessServiceImpl(公司service业务层实现类)
 * 
 * @Extends : BaseService
 * 
 * @Description: TODO(公司service业务层)
 * 
 * @Author bsth@lq
 * 
 * @Date 2016-4-28 9:21:17
 *
 * @Version 公交调度系统BS版 0.1
 * 
 */

@Service
public class BusinessServiceImpl extends BaseServiceImpl<Business, Integer> implements BusinessService{
	@Autowired
	private BusinessRepository businessRepository;
	@Override
	public long getCompCode() {
		// TODO Auto-generated method stub
		return businessRepository.getMaxId();
	}

}