package incheon.res.mng.nt.popup.service.impl;

import incheon.res.mng.nt.popup.mapper.MngNtPopupMapper;
import incheon.res.mng.nt.popup.service.MngNtPopupService;
import incheon.res.mng.nt.popup.vo.MngNtPopup;
import incheon.res.mng.nt.popup.vo.MngNtPopupVO;
import org.springframework.stereotype.Service;

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

@Service
public class MngNtPopupServiceImpl implements MngNtPopupService {

    @Resource
    private MngNtPopupMapper mngNtPopupMapper;
    public int countPopup(MngNtPopupVO vo) throws Exception {
        return mngNtPopupMapper.countPopup(vo);
    }

    public List selectPopupList(MngNtPopupVO vo) throws Exception {
        return mngNtPopupMapper.selectPopupList(vo);
    }

    public MngNtPopup selectPopup(MngNtPopupVO vo) throws Exception {
        return mngNtPopupMapper.selectPopup(vo);
    }

    public String selectMaxPopupSn(MngNtPopupVO vo) throws Exception {
        return mngNtPopupMapper.selectMaxPopupSn(vo);
    }

    public void updatePopup(MngNtPopupVO vo) throws Exception {
        mngNtPopupMapper.updatePopup(vo);
    }

    public void insertPopup(MngNtPopupVO vo) throws Exception {
        mngNtPopupMapper.insertPopup(vo);
    }

    public int deletePopup(MngNtPopupVO vo) throws Exception {
       return  mngNtPopupMapper.deletePopup(vo);
    }
}
