p-honggang.li
5 天以前 ac918503bb5e8fad007348e7e39ba7275b75f334
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package com.webmanage.mapper;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.webmanage.entity.UserPoints;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
 
/**
 * 用户积分Mapper接口
 * 
 * @author webmanage
 * @date 2024-08-07
 */
@Mapper
public interface UserPointsMapper extends BaseMapper<UserPoints> {
    
    /**
     * 根据用户ID查询积分信息
     */
    UserPoints selectByUserId(@Param("userId") String userId);
    
    /**
     * 根据单位ID查询积分信息
     */
    UserPoints selectByUnitId(@Param("unitId") String unitId);
}