Pu Zhibing
7 天以前 4c99ee7028c3fe58a2cd4b8273b22c75c45574fc
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
35
36
37
38
39
package com.stylefeng.guns.modular.taxi.dao;
 
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.stylefeng.guns.modular.taxi.model.PaymentRecord;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
import java.util.Map;
 
public interface PaymentRecordMapper extends BaseMapper<PaymentRecord> {
 
 
    /**
     * 获取数据
     * @param orderId
     * @param payType
     * @param state
     * @return
     */
    PaymentRecord query(@Param("category") Integer category, @Param("userId") Integer userId,
                        @Param("type") Integer type, @Param("orderId") Integer orderId,
                        @Param("orderType") Integer orderType, @Param("payType") Integer payType,
                        @Param("state") Integer state);
 
    /**
     *
     * @param uid 用户id
     * @param pageNum 页码
     * @param size 每页条数
     * @return 用户充值记录
     */
    List<Map<String, Object>> queryRechargeRecord(@Param("uid") Integer uid, @Param("pageNum")Integer pageNum, @Param("size")Integer size);
    /**
     * 查询充值金额总和
     * @param uid
     * @return
     */
    Double queryRechargeMoneySum(@Param("uid")Integer uid);
}