package com.xintong.visualinspection.service.impl;

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

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

import com.xintong.system.err.BusinessException;
import com.xintong.visualinspection.bean.CheckApply;
import com.xintong.visualinspection.dao.master.CheckApplyDao;
import com.xintong.visualinspection.service.BaseService;
import com.xintong.visualinspection.service.CheckApplyService;

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

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


    @Autowired
    private CheckApplyDao checkApplyDao;

	@Override
	public List<CheckApply> getList(CheckApply param) {
		// TODO Auto-generated method stub
		return checkApplyDao.getList(param);
	}
	@Override
	public CheckApply getById(Long id) {
		// TODO Auto-generated method stub
		return checkApplyDao.getOne(id);
	}
	@Override
	public void insert(CheckApply checkApply) {
		// TODO Auto-generated method stub
		checkApplyDao.insert(checkApply);
	}
	@Override
	public void update(CheckApply checkApply) {
		// TODO Auto-generated method stub
		checkApplyDao.update(checkApply);
	}
	@Override
	public void delete(Long id) {
		// TODO Auto-generated method stub
		checkApplyDao.delete(id);
	}
	@Override
	public CheckApply getByTaskId(Long id) {
		// TODO Auto-generated method stub
		return checkApplyDao.getOneByTaskId(id);
	}
	@Override
	public List<CheckApply> getTopReasonList(Map<String, Object> param) {
		// TODO Auto-generated method stub
		return checkApplyDao.getTopReasonList(param);
	}
}
