package com.xintong.visualinspection.service.impl;

import java.util.List;

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

import com.xintong.visualinspection.bean.CheckTaskPeriod;
import com.xintong.visualinspection.dao.master.CheckTaskPeriodDao;
import com.xintong.visualinspection.service.BaseService;
import com.xintong.visualinspection.service.CheckTaskPeriodService;

import lombok.Data;

/**
 * 文件名：UserServiceImpl
 * 版本信息：日期：2017/3/30 Copyright 江苏省交通规划设计院 Corporation 2017 版权所有.
 */
@Service
@Data
public class CheckTaskPeriodServiceImpl extends BaseService implements CheckTaskPeriodService {

    private static final org.slf4j.Logger logger = LoggerFactory.getLogger(CheckTaskPeriodService.class);


    @Autowired
    private CheckTaskPeriodDao checkTaskPriodDao;

   
   

	@Override
	public void insert(CheckTaskPeriod checkTaskPeriod) {
		checkTaskPriodDao.insert(checkTaskPeriod);
	}

	@Override
	public void update(CheckTaskPeriod checkTaskPeriod) {
		// TODO Auto-generated method stub
		checkTaskPriodDao.update(checkTaskPeriod);
	}

	@Override
	public void delete(Integer id) {
		// TODO Auto-generated method stub
		checkTaskPriodDao.delete((long)id);
	}

	@Override
	public List<CheckTaskPeriod> select(CheckTaskPeriod checkTaskPeriod) {
		// TODO Auto-generated method stub
		return checkTaskPriodDao.select(checkTaskPeriod);
	}

	@Override
	public List<CheckTaskPeriod> selectbytime(CheckTaskPeriod checkTaskPeriod) {
		return checkTaskPriodDao.selectbytime(checkTaskPeriod);
	}

	@Override
	public List<CheckTaskPeriod> selectbydatetime(CheckTaskPeriod checkTaskPeriod) {
		return checkTaskPriodDao.selectbydatetime(checkTaskPeriod);
	}
}
