package cn.pluss.platform.agreement.impl;

import java.util.List;
import java.util.Map;
import org.springframework.transaction.annotation.Transactional;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.pluss.platform.entity.Agreement;
import cn.pluss.platform.agreement.AgreementService;
import cn.pluss.platform.mapper.AgreementMapper;

@Transactional
@Service("agreementService")
public class AgreementServiceImpl  implements AgreementService{

	 private static final Logger logger = LoggerFactory.getLogger( AgreementServiceImpl.class);


    @Autowired
	  private AgreementMapper agreementMapper;

    @Override
    public Agreement queryAgreement(Agreement agreement){
        return agreementMapper.queryAgreement(agreement);
    }

    @Override
    public List<Agreement> queryAgreementList(Agreement agreement){
        return agreementMapper.queryAgreementList(agreement);
    }
    @Override
    public void saveAgreement(Agreement agreement){
          agreementMapper.saveAgreement(agreement);
    }
    @Override
    public void updateAgreement(Agreement agreement){
        agreementMapper.updateAgreement(agreement);
    }
    @Override
    public void deleteAgreement(Agreement agreement){
        agreementMapper.deleteAgreement(agreement);
    }
    @Override
    public List<Agreement> queryAgreementPage(Map map){
        return agreementMapper.queryAgreementPage(map);
    }
    @Override
    public Integer queryAgreementPageCount(Map map){
        return agreementMapper.queryAgreementPageCount(map);
    }
    @Override
    public void saveAgreementBatch(List<Agreement> agreementList) {
         agreementMapper.saveAgreementBatch(agreementList);
    }
}

