package com.nmgs.mapper;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.jeffreyning.mybatisplus.base.MppBaseMapper;
import com.nmgs.entity.ServiceAreaOperators;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

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

@Mapper
public interface OperatorsMapper extends MppBaseMapper<ServiceAreaOperators> {

    /**
     * 分页查询运营人员数据
     * @param page
     * @param params
     * @return
     */
    Page<ServiceAreaOperators> getOperatorsList(Page<ServiceAreaOperators> page, @Param("params")Map<String, Object> params);



    /**
     * 获取员工角色
     * @return
     */
    List<Map<String,Object>> selectRoleListList();

    /**
     * 获取服务区
     * @return
     */
    List<Map<String,Object>> selectServiceAreaList();


    /**
     * 获取最大id
     * @return
     */
    Integer getMaxId();

    /**
     * 根据工号获取数据
     * @return
     */
    List<ServiceAreaOperators> getOperationByJobNumber(@Param("jobNumber")String jobNumber);


}
