EmergencyCommandLiaisonUserMapper.java 1.0 KB
package com.skua.modules.emergency.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.skua.modules.emergency.entity.EmergencyCommandLiaisonUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.skua.modules.system.entity.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 应急联络图关联人员
 * @author 11389
 */
public interface EmergencyCommandLiaisonUserMapper extends BaseMapper<EmergencyCommandLiaisonUser> {

    /**
     * 应急联络图关联人员-指定查询关联用户
     * @param page
     * @param emergencyId
     * @param username
     * @return
     */
    IPage<SysUser> getUserByEmergencyId(Page<SysUser> page, String emergencyId, String username);

    /**
     * 查询用户列表
     * @param id
     * @return
     */
    List<SysUser> getUserList(String id);

    IPage<SysUser > userList(Page<SysUser> page,  @Param("realname")String realname);

}