2025-04-24 11:49:59 +08:00
|
|
|
|
package com.greenorange.promotion.mapper;
|
|
|
|
|
|
|
|
|
|
import com.greenorange.promotion.model.entity.UserInfo;
|
|
|
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
|
|
|
|
2025-05-14 10:40:17 +08:00
|
|
|
|
import java.util.List;
|
|
|
|
|
|
2025-04-24 11:49:59 +08:00
|
|
|
|
/**
|
|
|
|
|
* @author 35880
|
|
|
|
|
* @description 针对表【user_info(用户基本信息表)】的数据库操作Mapper
|
|
|
|
|
* @createDate 2025-04-24 11:47:37
|
|
|
|
|
* @Entity com.greenorange.promotion.model.entity.UserInfo
|
|
|
|
|
*/
|
|
|
|
|
public interface UserInfoMapper extends BaseMapper<UserInfo> {
|
|
|
|
|
|
2025-05-14 10:40:17 +08:00
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 查询从 userId 一路到根节点的所有 id,按 depth 倒序(根先出)
|
|
|
|
|
*/
|
|
|
|
|
List<Long> findPathToRoot(Long userId);
|
|
|
|
|
|
|
|
|
|
|
2025-04-24 11:49:59 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|