package com.yonge.cooleshow.biz.dal.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yonge.cooleshow.biz.dal.entity.SysArea;
import com.yonge.cooleshow.biz.dal.wrapper.SysAreaWrapper;

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

/**
 * 区域表
 * 2022-11-23 18:28:58
 */
public interface SysAreaService extends IService<SysArea>  {

	/**
     * 查询详情
     * @param id 详情ID
     * @return SysAreaWrapper.SysArea
     */
	SysAreaWrapper.SysArea detail(Long id);

    /**
     * 分页查询
     * @param page IPage<SysAreaWrapper.SysArea>
     * @param query SysAreaWrapper.SysAreaQuery
     * @return IPage<SysAreaWrapper.SysArea>
     */
    IPage<SysAreaWrapper.SysArea> selectPage(IPage<SysAreaWrapper.SysArea> page, SysAreaWrapper.SysAreaQuery query);

    /**
     * 添加
     * @param sysArea SysAreaWrapper.SysArea
     * @return Boolean
     */
     Boolean add(SysAreaWrapper.SysArea sysArea);

    /**
     * 更新
     * @param sysArea SysAreaWrapper.SysArea
     * @return Boolean
     */
     Boolean update(SysAreaWrapper.SysArea sysArea);

     /**
      * 根据code获取对象
      * @param codeList
      * @return
      */
     List<SysArea> queryByCodes(List<Integer> codeList);

     /**
     * @description: 获取城市code和name映射
      * @param schoolIds
     * @return java.util.Map<java.lang.Integer,java.lang.String>
     * @author zx
     * @date 2023/1/4 13:40
     */
     <K extends Collection> Map<Integer, String> getNameMap(K schoolIds);
}
