package incheon.res.rdm.oe.queans.service.impl;


import incheon.res.rdm.oe.queans.mapper.RdmOeQueansMapper;
import incheon.res.rdm.oe.queans.service.RdmOeQueansService;
import incheon.res.rdm.oe.queans.vo.RdmOeQueans;
import incheon.res.rdm.oe.queans.vo.RdmOeQueansVO;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class RdmOeQueansServiceImpl implements RdmOeQueansService {
	
	protected Log log = LogFactory.getLog(this.getClass());
	
	@Resource
    private RdmOeQueansMapper rdmOeQueansMapper;
	
	public int countList(RdmOeQueansVO vo) throws Exception {
		return rdmOeQueansMapper.countList(vo);
	}

	public List selectQueansList(RdmOeQueansVO vo) throws Exception {
		return rdmOeQueansMapper.selectQueansList(vo);
	}

	public RdmOeQueans selectQueans(RdmOeQueansVO vo) throws Exception {
		return rdmOeQueansMapper.selectQueans(vo);
	}
	
	public RdmOeQueans selectQueansByQueInfo(RdmOeQueansVO vo) throws Exception {
		return rdmOeQueansMapper.selectQueansByQueInfo(vo);
	}

	public int updateQueansHitcnt(RdmOeQueansVO vo) throws Exception {
		return rdmOeQueansMapper.updateQueansHitcnt(vo);
	}

	public String selectMaxQueSeq(RdmOeQueansVO vo) throws Exception {
		return rdmOeQueansMapper.selectMaxQueSeq(vo);
	}

	public String selectMaxAnsSeq(RdmOeQueansVO vo) throws Exception {
		return rdmOeQueansMapper.selectMaxAnsSeq(vo);
	}

	public int updateHitCntAdd(RdmOeQueansVO vo) throws Exception {
		return rdmOeQueansMapper.updateHitCntAdd(vo);
	}

	public void insertQueans(RdmOeQueansVO vo) throws Exception {
		rdmOeQueansMapper.insertQueans(vo);
	}

	public int updateQueans(RdmOeQueansVO vo) throws Exception {
		return rdmOeQueansMapper.updateQueans(vo);
	}

	public int deleteQueans(RdmOeQueansVO vo) throws Exception {
		return rdmOeQueansMapper.deleteQueans(vo);
	}

}
