Compare commits
2 Commits
e701980dde
...
6d02404736
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6d02404736 | ||
|
|
21424f5fe2 |
@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.ruoyi.member.domain.MemberPoints;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
/**
|
||||
* 博主积分变动明细Mapper接口
|
||||
@ -24,5 +25,5 @@ public interface MemberPointsMapper extends BaseMapper<MemberPoints> {
|
||||
* @author PQZ
|
||||
* @date 15:25 2025/3/29
|
||||
**/
|
||||
IPage<MemberPoints> queryListPage(Long userId, Page<MemberPoints> page);
|
||||
IPage<MemberPoints> queryListPage(@Param("userId") Long userId, Page<MemberPoints> page);
|
||||
}
|
||||
|
||||
@ -27,7 +27,8 @@
|
||||
<select id="queryListPage" parameterType="MemberPoints" resultMap="MemberPointsResult">
|
||||
<include refid="selectMemberPointsVo"/>
|
||||
<where>
|
||||
<if test="entity.userId != null"> and user_id = #{entity.userId}</if>
|
||||
<if test="userId != null"> and user_id = #{userId}</if>
|
||||
</where>
|
||||
order by create_time desc
|
||||
</select>
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue
Block a user