Compare commits

...

2 Commits

Author SHA1 Message Date
PQZ
6d02404736 Merge branch 'master' of http://192.168.1.26:3000/dianliang/dl_admin 2025-04-17 14:16:56 +08:00
PQZ
21424f5fe2 1 2025-04-17 14:16:54 +08:00
2 changed files with 4 additions and 2 deletions

View File

@ -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);
}

View File

@ -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>