package com.dcit.danger.service.impl;

import java.util.List;
import java.util.Map;

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

import com.dcit.danger.dao.AlarmInfoMapper;
import com.dcit.danger.dto.AlarmInfoDTO;
import com.dcit.danger.model.AlarmInfo;
import com.dcit.danger.model.AlarmInfoExample;
import com.dcit.danger.service.AlarmInfoService;

@Service
public class AlarmInfoServiceImpl implements AlarmInfoService{

	@Autowired
	private AlarmInfoMapper alarmInfoMapper;
	
	@Override
	public long countByExample(AlarmInfoExample example) {
		// TODO Auto-generated method stub
		return alarmInfoMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(AlarmInfoExample example) {
		// TODO Auto-generated method stub
		return alarmInfoMapper.deleteByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(String id) {
		// TODO Auto-generated method stub
		return alarmInfoMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(AlarmInfo record) {
		// TODO Auto-generated method stub
		return alarmInfoMapper.insert(record);
	}

	@Override
	public int insertSelective(AlarmInfo record) {
		// TODO Auto-generated method stub
		return alarmInfoMapper.insertSelective(record);
	}

	@Override
	public List<AlarmInfo> selectByExample(AlarmInfoExample example) {
		// TODO Auto-generated method stub
		return alarmInfoMapper.selectByExample(example);
	}

	@Override
	public AlarmInfo selectByPrimaryKey(String id) {
		// TODO Auto-generated method stub
		return alarmInfoMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByExampleSelective(AlarmInfo record, AlarmInfoExample example) {
		// TODO Auto-generated method stub
		return alarmInfoMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(AlarmInfo record, AlarmInfoExample example) {
		// TODO Auto-generated method stub
		return alarmInfoMapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(AlarmInfo record) {
		// TODO Auto-generated method stub
		return alarmInfoMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(AlarmInfo record) {
		// TODO Auto-generated method stub
		return alarmInfoMapper.updateByPrimaryKey(record);
	}

	@Override
	public List<AlarmInfoDTO> selectAlarmInfoList(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return alarmInfoMapper.selectAlarmInfoList(map);
	}

}
