完成了第一版

This commit is contained in:
2025-05-14 10:40:17 +08:00
parent 1a9822350a
commit 26f9fe2a20
11 changed files with 129 additions and 73 deletions

View File

@ -3,6 +3,8 @@ package com.greenorange.promotion.mapper;
import com.greenorange.promotion.model.entity.UserInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import java.util.List;
/**
* @author 35880
* @description 针对表【user_info(用户基本信息表)】的数据库操作Mapper
@ -11,6 +13,13 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
*/
public interface UserInfoMapper extends BaseMapper<UserInfo> {
/**
* 查询从 userId 一路到根节点的所有 id按 depth 倒序(根先出)
*/
List<Long> findPathToRoot(Long userId);
}