package cn.com.countrygarden.bi.main.service.bii.impl;

import cn.com.countrygarden.bi.main.dao.bii.BiTargetYearMapper;
import cn.com.countrygarden.bi.main.model.bii.BiTargetYear;
import cn.com.countrygarden.bi.main.service.bii.BiTargetYearService;

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

/**
 * Created by Leo on 2018/6/4
 */
@Service
@Transactional
public class BiTargetYearServiceImpl implements BiTargetYearService {
	@Autowired
	private BiTargetYearMapper biTargetYearMapper;

	/* (non-Javadoc)  	
	 * <p>@author zhaolie 居者乐目标值</p>  	
	 * @param bit
	 * @return 
	 * @see cn.com.countrygarden.bi.main.service.bii.BiTargetYearService#getgetBiTargetYear(cn.com.countrygarden.bi.main.model.bii.BiTargetYear)  
	
	 */
	@Override
	public BiTargetYear getgetBiTargetYear(BiTargetYear bit) {
		// TODO Auto-generated method stub
		return this.biTargetYearMapper.selectOne(bit);
	}

	/* (non-Javadoc)  
	
	 * <p>@author zhaolie 更新居者数据</p>  
	
	 * <p>Description: </p>  
	
	 * @param bit  
	
	 * @see cn.com.countrygarden.bi.main.service.bii.BiTargetYearService#updateBiTargetYear(cn.com.countrygarden.bi.main.model.bii.BiTargetYear)  
	
	 */
	@Override
	@Transactional
	public void updateBiTargetYear(BiTargetYear bit) {
		// TODO Auto-generated method stub		
		this.biTargetYearMapper.updateBiTargetYear(bit);
	}

	/* (non-Javadoc)  	
	 * <p>@author zhaolie 插入居者乐数据</p>  	
	 * <p>Description: </p>  	
	 * @param bit  	
	 * @see cn.com.countrygarden.bi.main.service.bii.BiTargetYearService#insertBiTargetYear(cn.com.countrygarden.bi.main.model.bii.BiTargetYear)  	
	 */
	@Override
	@Transactional
	public void insertBiTargetYear(BiTargetYear bit) {
		// TODO Auto-generated method stub
		this.biTargetYearMapper.insertBiTargetYear(bit);
	}
}
