package com.hzs.system.config.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hzs.common.domain.system.config.BdContinent;
import com.hzs.system.config.mapper.BdContinentMapper;
import com.hzs.system.config.service.IBdContinentService;
import com.hzs.system.config.vo.BdContinentVO;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 区域配置 服务实现类
 * </p>
 *
 * @author hzs
 * @since 2023-03-29
 */
@Service
public class BdContinentServiceImpl extends ServiceImpl<BdContinentMapper, BdContinent> implements IBdContinentService {

    /**
     * @description: 查询关联的国家或地区
     * @author: zhang jing
     * @date: 2023/3/31 11:54
     * @param: [bdContinentVO]
     * @return: java.util.List<com.hzs.system.config.vo.BdContinentVO>
     **/
    @Override
    public List<BdContinentVO> selectRegionList(BdContinentVO bdContinentVO) {
        return baseMapper.selectRegionList(bdContinentVO);
    }

    /**
     * @description: 查询关联的省
     * @author: zhang jing
     * @date: 2023/3/31 14:35
     * @param: [bdContinentVO]
     * @return: java.util.List<com.hzs.system.config.vo.BdContinentVO>
     **/
    @Override
    public List<BdContinentVO> selectProvinceList(BdContinentVO bdContinentVO) {
        return baseMapper.selectProvinceList(bdContinentVO);
    }

    /**
     * @description: 洲际配置-根据上级查询下一级或国家
     * @author: zhang jing
     * @date: 2023/6/14 16:31
     * @param: [bdContinentVO]
     * @return: java.util.List<com.hzs.system.config.vo.BdContinentVO>
     **/
    @Override
    public List<BdContinentVO> sonlist(BdContinentVO bdContinentVO) {
        return baseMapper.sonlist(bdContinentVO);
    }

    /**
     * @description: 区域配置-根据上级查询下一级区域或省
     * @author: zhang jing
     * @date: 2023/6/14 17:06
     * @param: [bdContinentVO]
     * @return: java.util.List<com.hzs.system.config.vo.BdContinentVO>
     **/
    @Override
    public List<BdContinentVO> sonlistRegion(BdContinentVO bdContinentVO) {
        return baseMapper.sonlistRegion(bdContinentVO);
    }
}
