package cn.qinys.platform.upms.api.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import cn.qinys.platform.entity.upms.MarketMapDepartment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Description:
 *
 * @author tanlie
 * Date: 2024/6/3 9:42
 */
@Repository
@Mapper
public interface MarketMapDepartmentMapper extends BaseMapper<MarketMapDepartment> {

    /**
     * 获取部门（支局id）
     *
     * @return
     */
    @Select("SELECT id FROM third_market_map_department ${ew.customSqlSegment}")
    List<Integer> selectDepartmentIds(@Param(Constants.WRAPPER) Wrapper<MarketMapDepartment> wrapper);

}
