package com.starry.admin.modules.clerk.mapper;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.github.yulichang.base.MPJBaseMapper;
import com.starry.admin.modules.clerk.module.entity.PlayClerkUserInfoEntity;
import java.util.List;
import org.apache.ibatis.annotations.Select;

/**
 * 店员Mapper接口
 *
 * @author admin
 * @since 2024-03-30
 */
public interface PlayClerkUserInfoMapper extends MPJBaseMapper<PlayClerkUserInfoEntity> {

    @InterceptorIgnore(tenantLine = "true")
    @Select("SELECT id, tenant_id, album FROM play_clerk_user_info WHERE deleted = 0 AND album IS NOT NULL")
    List<PlayClerkUserInfoEntity> selectAllWithAlbumIgnoringTenant();
}
