You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
86 lines
1.7 KiB
Java
86 lines
1.7 KiB
Java
package com.glxp.api.dao.auth;
|
|
|
|
import com.glxp.api.dao.BaseMapperPlus;
|
|
import com.glxp.api.entity.auth.AuthAdmin;
|
|
import com.glxp.api.req.auth.FilterAuthUserRequest;
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
|
import java.util.List;
|
|
|
|
@Mapper
|
|
public interface AuthAdminDao extends BaseMapperPlus<AuthAdminDao, AuthAdmin, AuthAdmin> {
|
|
|
|
/**
|
|
* 后台业务查询列表
|
|
*
|
|
* @return 列表
|
|
*/
|
|
List<AuthAdmin> listAdminPage(FilterAuthUserRequest filterAuthUserRequest);
|
|
|
|
boolean replaceAuthAdmin(AuthAdmin authAdmin);
|
|
|
|
/**
|
|
* 根据id查询
|
|
*
|
|
* @param id 传入的id
|
|
* @return
|
|
*/
|
|
AuthAdmin findById(Long id);
|
|
|
|
/**
|
|
* 根据id查询 password
|
|
*
|
|
* @param id 传入的id
|
|
* @return
|
|
*/
|
|
AuthAdmin findPwdById(Long id);
|
|
|
|
/**
|
|
* 根据Name
|
|
*
|
|
* @param userName 用户名
|
|
* @return
|
|
*/
|
|
AuthAdmin findByUserName(String userName);
|
|
|
|
/**
|
|
* 插入
|
|
*
|
|
* @param authAdmin
|
|
* @return
|
|
*/
|
|
boolean insertAuthAdmin(AuthAdmin authAdmin);
|
|
|
|
/**
|
|
* 更新
|
|
*
|
|
* @param authAdmin
|
|
* @return
|
|
*/
|
|
boolean updateAuthAdmin(AuthAdmin authAdmin);
|
|
|
|
/**
|
|
* 删除
|
|
*
|
|
* @param id
|
|
* @return
|
|
*/
|
|
boolean deleteById(Long id);
|
|
|
|
/**
|
|
* 查询医院用户列表
|
|
*
|
|
* @return
|
|
*/
|
|
List<AuthAdmin> selectHospitalUser();
|
|
|
|
List<AuthAdmin> selectNotSelectUser(@Param("userIds") List<Long> userIds, @Param("deptId") Long deptId);
|
|
|
|
List<AuthAdmin> selectAllocatedList(FilterAuthUserRequest filterAuthUserRequest);
|
|
|
|
List<AuthAdmin> selectUnallocatedList(FilterAuthUserRequest filterAuthUserRequest);
|
|
|
|
|
|
}
|