package incheon.res.app.code.service.impl;

import incheon.res.app.code.mapper.UngisAppPostCodeMapper;
import incheon.res.app.code.service.UngisAppPostCodeService;
import incheon.res.app.code.vo.UngisAppPostCodeVO;
import org.springframework.stereotype.Service;

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


@Service
public class UngisAppPostCodeServiceImpl implements UngisAppPostCodeService {
	
	@Resource
	private UngisAppPostCodeMapper ungisAppPostCodeMapper;

	/**
	 * 광역도명,시군명, 읍면동명에 따른 주소검색
	 */
	public List selectPostCodeList(UngisAppPostCodeVO vo) throws Exception {
		
		return ungisAppPostCodeMapper.selectPostCodeList(vo);
	}
	
	/**
	 * 광역도명,시군명, 읍면동명에 따른 주소검색의 총 카운트 수
	 */
	public int countCodeList(UngisAppPostCodeVO vo) throws Exception {
		
		return ungisAppPostCodeMapper.countCodeList(vo);
	}
	
	/**
	 * 시군명, 읍면동명에 따른 주소검색
	 */
	public List selectPostCodeCompanyList(UngisAppPostCodeVO vo)
			throws Exception {
		
		return ungisAppPostCodeMapper.selectPostCodeCompanyList(vo);
	}

	/**
	 * 시군명, 읍면동명에 따른 주소검색의 총 카운트 수
	 */
	public int countList(UngisAppPostCodeVO vo) throws Exception {
		
		return ungisAppPostCodeMapper.countList(vo);
	}

}
