mitao
2025-02-21 31573d6180d15ef65ed0df9c2732495f40b12663
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
package com.panzhihua.service_community.service;
 
import com.baomidou.mybatisplus.extension.service.IService;
import com.panzhihua.common.model.dtos.community.integral.ComActIntegralCommunityRankDTO;
import com.panzhihua.common.model.dtos.community.integral.ComActIntegralCountDTO;
import com.panzhihua.common.model.dtos.community.integral.admin.AddComActIntegralUserDTO;
import com.panzhihua.common.model.dtos.community.integral.admin.PageComActIntegralTradeDTO;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.service_community.model.dos.ComActIntegralUserTradeDO;
 
/**
 * @auther lyq
 * @create 2021-07-28 16:03:18
 * @describe 用户积分账户交易记录服务类
 */
public interface ComActIntegralUserTradeService extends IService<ComActIntegralUserTradeDO> {
 
    /**
     * 查询用户某个时间段交易数量
     * 
     * @param integralCountDTO
     *            请求参数
     * @return 交易数量
     */
    Integer getIntegralCount(ComActIntegralCountDTO integralCountDTO);
 
    /**
     * 添加用户积分交易记录
     * 
     * @param userId
     *            用户id
     * @param integralId
     *            积分账户id
     * @param communityId
     *            社区id
     * @param serviceId
     *            交易业务id
     * @param serviceType
     *            交易业务类型(1.发布随手拍 2.发布微心愿 3.参与议事投票 4.社区活动-居民身份参与 " +
     *             "5.社区活动-党员身份参与 6.社区活动-志愿者身份参与 7.参与调查问卷 8.取消活动 9.参与单位党员活动)
     * @param amount
     *            交易积分数量
     * @param changeType
     *            变动类型(1.增加 2.减少)
     * @param remark
     *            交易备注
     * @param identityType
     *            交易身份类型(1.居民 2.党员 3.志愿者)
     * @param createBy
     *            操作人id
     */
    Long addIntegralTradeRecord(Long userId, Long integralId, Long communityId, Long serviceId, Integer serviceType,
        Integer amount, Integer changeType, String remark, Integer identityType, Long createBy);
 
    /**
     * 小程序-查询用户社区积分明细
     * 
     * @param communityTradeDTO
     *            请求参数
     * @return 用户社区积分明细
     */
    R getIntegralCommunityTradeApplets(ComActIntegralCommunityRankDTO communityTradeDTO);
 
    /**
     * 社区后台-分页查询社区下积分明细记录
     * 
     * @param integralRuleDTO
     *            请求参数
     * @return 社区下积分明细记录
     */
    R getIntegralTradeListAdmin(PageComActIntegralTradeDTO integralRuleDTO);
 
    /**
     * 给用户添加积分
     * 
     * @param integralUserDTO
     *            请求参数
     * @return 添加积分结果
     */
    R addIntegralTradeAdmin(AddComActIntegralUserDTO integralUserDTO);
 
    /**
     * 获取积分详情
     * @param id
     * @return
     */
    R getUserIntegralDetail(Long id);
}