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.PlanInfoMapper;
import com.dcit.danger.dto.PlanInfoDTO;
import com.dcit.danger.model.PlanInfo;
import com.dcit.danger.model.PlanInfoExample;
import com.dcit.danger.service.PlanInfoService;

@Service
public class PlanInfoServiceImpl implements PlanInfoService {

	@Autowired
	private PlanInfoMapper planInfoMapper;
	
	@Override
	public long countByExample(PlanInfoExample example) {
		// TODO Auto-generated method stub
		return planInfoMapper.countByExample(example);
	}

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

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

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

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

	@Override
	public List<PlanInfo> selectByExample(PlanInfoExample example) {
		// TODO Auto-generated method stub
		return planInfoMapper.selectByExample(example);
	}

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

	@Override
	public int updateByExampleSelective(PlanInfo record, PlanInfoExample example) {
		// TODO Auto-generated method stub
		return planInfoMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(PlanInfo record, PlanInfoExample example) {
		// TODO Auto-generated method stub
		return planInfoMapper.updateByExample(record, example);
	}

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

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

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

}
