Pu Zhibing
7 天以前 546be8a1bafdfc804575a8d07a5d9f2306c29c42
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
27
28
29
30
31
32
33
34
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.member.mapper.member.IntegralRecordMapper">
 
    <select id="pageMgtMemberIntegral" resultType="com.ruoyi.member.domain.vo.MgtMemberIntegralPageVo">
        SELECT
        tir.record_id recordId,
        tir.create_time createTime,
        tir.change_integral changeIntegral,
        tir.surp_integral surpIntegral,
        tir.change_reason changeReason
        FROM t_integral_record tir
        WHERE tir.del_flag = 0 AND tir.user_id = #{param.memberUserId}
        <if test="param.changeStartDate != null and param.changeStartDate != ''">
            AND Date(tir.create_time) &gt;= #{param.changeStartDate}
        </if>
        <if test="param.changeEndDate != null and param.changeEndDate != ''">
            AND Date(tir.create_time) &lt;= #{param.changeEndDate}
        </if>
        ORDER BY tir.create_time DESC
    </select>
 
    <select id="pageAppMemberIntegralRecord" resultType="com.ruoyi.member.domain.vo.AppIntegralRecordPageVo">
        SELECT
        tir.create_time createTime,
        tir.change_integral changeIntegral,
        tir.change_reason changeReason
        FROM t_integral_record tir
        WHERE tir.del_flag = 0 AND tir.user_id = #{userId}
        ORDER BY tir.create_time DESC
    </select>
 
 
</mapper>