package incheon.ags.uis.dept.service.impl;

import incheon.ags.uis.dept.mapper.DeptMappingMapper;
import incheon.ags.uis.dept.service.DeptMappingService;
import incheon.ags.uis.dept.vo.DeptMappingVO;
import org.egovframe.rte.psl.dataaccess.util.EgovMap;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeptMappingServiceImpl implements DeptMappingService {

    private final DeptMappingMapper deptMappingMapper;

    public DeptMappingServiceImpl(DeptMappingMapper deptMappingMapper) {
        this.deptMappingMapper = deptMappingMapper;
    }

    @Override
    public List<DeptMappingVO> selectDeptMappingList(DeptMappingVO searchVO) {
        return deptMappingMapper.selectDeptMappingList(searchVO);
    }

    @Override
    public int selectDeptMappingListCount(DeptMappingVO searchVO) {
        return deptMappingMapper.selectDeptMappingListCount(searchVO);
    }

    @Override
    public List<EgovMap> selectMngtList() {
        return deptMappingMapper.selectMngtList();
    }

    @Override
    public DeptMappingVO selectDeptMappingDetail(DeptMappingVO searchVO) {
        return deptMappingMapper.selectDeptMappingDetail(searchVO);
    }

    @Override
    public List<EgovMap> selectDeptListForMapping(DeptMappingVO searchVO) {
        return deptMappingMapper.selectDeptListForMapping(searchVO);
    }

    @Override
    public int selectDeptListForMappingCount(DeptMappingVO searchVO) {
        return deptMappingMapper.selectDeptListForMappingCount(searchVO);
    }

    @Override
    public void insertDeptMapping(DeptMappingVO deptMappingVO) {
        deptMappingMapper.insertDeptMapping(deptMappingVO);
    }

    @Override
    public void updateDeptMapping(DeptMappingVO deptMappingVO) {
        deptMappingMapper.updateDeptMapping(deptMappingVO);
    }

    @Override
    public void deleteDeptMapping(DeptMappingVO deptMappingVO) {
        deptMappingMapper.deleteDeptMapping(deptMappingVO);
    }
}