package incheon.sgp.rst.service.impl;

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


import org.springframework.stereotype.Service;

import incheon.sgp.rst.mapper.RstLcadstMapper;
import incheon.sgp.rst.service.RstLcadstService;
import incheon.sgp.rst.vo.RstAdmResultVO;

/**
 * @ClassName : RstLcadstServiceImpl.java
 * @Description : 지목별/소유별 지적통계 서비스 구현체
 * @author : 이주훈
 * @since : 2025.10.27
 * @version : 1.0
 */
@Service
public class RstLcadstServiceImpl  implements RstLcadstService {

	// 매퍼 주입
    private final RstLcadstMapper rstLcadstMapper; 

    // 매퍼 생성자 주입
    public RstLcadstServiceImpl(RstLcadstMapper rstLcadstMapper) {
        this.rstLcadstMapper = rstLcadstMapper;
    }
    
    @Override
    public Map<String, Object> selectLandSummary(String sggCd, String emdCd, String liCd, String year) throws Exception {
        return rstLcadstMapper.selectLandSummary(sggCd, emdCd, liCd, year);
    }

    @Override
    public List<Map<String, Object>> selectLandGroupStats(String sggCd, String emdCd, String liCd, String year) throws Exception {
        return rstLcadstMapper.selectLandGroupStats(sggCd, emdCd, liCd, year);
    }
    
    @Override
    public Map<String, Object> selectOwnSummary(String sggCd, String emdCd, String liCd, String year) throws Exception {
        return rstLcadstMapper.selectOwnSummary(sggCd, emdCd, liCd, year);
    }
    
    @Override
    public List<Map<String, Object>> selectOwnGroupStats(String sggCd, String emdCd, String liCd, String year) throws Exception {
        return rstLcadstMapper.selectOwnGroupStats(sggCd, emdCd, liCd, year);
    }
    
    @Override
    public List<RstAdmResultVO> selectCtpList() throws Exception {
        return rstLcadstMapper.selectCtpList();
    }

    @Override
    public List<RstAdmResultVO> selectSigList(String ctpCd) throws Exception {
        return rstLcadstMapper.selectSigList(ctpCd);
    }

    @Override
    public List<RstAdmResultVO> selectEmdList(String sigCd) throws Exception {
        return rstLcadstMapper.selectEmdList(sigCd);
    }
    
    @Override
    public List<RstAdmResultVO> selectLiList(String emdCd) throws Exception {
        return rstLcadstMapper.selectLiList(emdCd);
    }    
    
    @Override
    public Map<String, Object> getAdmCenter(String admCd) throws Exception {
    	return rstLcadstMapper.getAdmCenter(admCd);
    }
    
    @Override
    public List<String> selectCrtrYrList() throws Exception {
        return rstLcadstMapper.selectCrtrYrList();
    }
}
