/*
*  Copyright 2019-2025 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package com.aircraft.modules.system.service;

import com.aircraft.modules.system.domain.EmArea;
import com.aircraft.modules.system.domain.EmEmployees;
import com.aircraft.modules.system.domain.dto.EmEmployeesQueryCriteria;

import java.util.List;
import java.io.IOException;
import javax.servlet.http.HttpServletResponse;
import javax.validation.constraints.NotNull;

import com.aircraft.modules.system.domain.vo.EmEmployeesDetailVo;
import com.aircraft.modules.system.domain.vo.EmEmployeesVo;
import com.aircraft.utils.PageResult;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @description 服务接口
* @author lhb
* @date 2025-07-08
**/
public interface EmEmployeesService extends IService<EmEmployees> {

    /**
    * 查询数据分页
    * @param criteria 条件
    * @param page 分页参数
    * @return PageResult
    */
    PageResult<EmEmployees> queryAll(EmEmployeesQueryCriteria criteria, Page<Object> page);

    /**
    * 查询所有数据不分页
    * @param criteria 条件参数
    * @return List<EmEmployeesDto>
    */
    List<EmEmployees> queryAll(EmEmployeesQueryCriteria criteria);

    /**
    * 创建
    * @param resources /
    */
    void create(EmEmployeesVo resources);

    /**
    * 编辑
    * @param resources /
    */
    void update(EmEmployees resources);

    /**
    * 多选删除
    * @param ids /
    */
    void deleteAll(List<Long> ids);

    /**
    * 导出数据
    * @param all 待导出的数据
    * @param response /
    * @throws IOException /
    */
    void download(List<EmEmployees> all, HttpServletResponse response) throws IOException;

    /**
     * 分页查询
     * @param example
     * @param page
     * @return
     */
    PageResult<EmEmployeesDetailVo> page(EmEmployeesDetailVo example, Page page);

    /**
     * 获取景区下的用户
     * @param id
     * @return
     */
    List<EmEmployees> findByScenicId(Long id);

    /**
     * 查询详细信息
     * @param id
     * @return
     */
    EmEmployeesDetailVo findById(Integer id);

    EmEmployees findByUsername(String username);

    /**
     * 批量查询用户信息
     *
     * @param orderInitiatorIds  订单发起人ID列表
     * @return  List<EmEmployees>
     */
    List<EmEmployees> obtainEmployeesByIds(List<Long> orderInitiatorIds);

    /**
     * 用户名查询飞行员
     * @param currentUsername
     * @return
     */
    EmEmployees findByUserName(String currentUsername);

    /**
     * 修改密码
     * @param username 用户名
     * @param encryptPassword 密码
     */
    void updatePass(String username, String encryptPassword);

    /**
     * 条件查询
     * @param example
     * @return
     */
    List<EmEmployees> list(EmEmployees example);
}