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
89
90
91
92
package com.panzhihua.service_community.api;
 
import javax.annotation.Resource;
 
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
import com.panzhihua.common.model.dtos.community.wallet.ComActWalletSettlementAdminDTO;
import com.panzhihua.common.model.dtos.community.wallet.PageComActWalletAdminDTO;
import com.panzhihua.common.model.dtos.community.wallet.PageComActWalletTradeAdminDTO;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.service_community.service.ComActUserWalletService;
import com.panzhihua.service_community.service.ComActUserWalletTradeService;
 
import lombok.extern.slf4j.Slf4j;
 
@Slf4j
@RestController
@RequestMapping("/user/wallet/")
public class ComActUserWalletApi {
 
    @Resource
    private ComActUserWalletService comActUserWalletService;
    @Resource
    private ComActUserWalletTradeService comActUserWalletTradeService;
 
    /**
     * 分页查询收益结算列表
     * 
     * @param pageWalletAdminDTO
     *            请求参数
     * @return 收益结算列表
     */
    @PostMapping("/page")
    public R page(@RequestBody PageComActWalletAdminDTO pageWalletAdminDTO) {
        return comActUserWalletService.pageUserWalletAdmin(pageWalletAdminDTO);
    }
 
    /**
     * 用户结算收益
     * 
     * @param settlementAdminDTO
     *            请求参数
     * @return 结算结果
     */
    @PostMapping("/settlement")
    public R settlement(@RequestBody ComActWalletSettlementAdminDTO settlementAdminDTO) {
        return comActUserWalletService.userWalletSettlementAdmin(settlementAdminDTO);
    }
 
    /**
     * 分页查询交易记录
     *
     * @param pageTradeAdminDTO
     *            请求参数
     * @return 交易记录列表
     */
    @PostMapping("/trade/page")
    public R tradePage(@RequestBody PageComActWalletTradeAdminDTO pageTradeAdminDTO) {
        return comActUserWalletTradeService.pageUserWalletTradeAdmin(pageTradeAdminDTO);
    }
 
    /**
     * 查询用户交易记录总额
     * 
     * @param pageTradeAdminDTO
     *            请求参数
     * @return 交易记录总额
     */
    @PostMapping("/trade/total")
    public R getTradeUserTotalWalletTradeAdmin(@RequestBody PageComActWalletTradeAdminDTO pageTradeAdminDTO) {
        return comActUserWalletTradeService.getTradeUserTotalWalletTradeAdmin(pageTradeAdminDTO);
    }
 
    @PostMapping("/trade/statistics")
    public R getTradeUserStatisticsAdmin(@RequestBody PageComActWalletTradeAdminDTO pageTradeAdminDTO) {
        return comActUserWalletTradeService.getTradeUserStatisticsAdmin(pageTradeAdminDTO);
    }
 
    @PostMapping("/trade/export")
    public R getTradeUserTotalWalletTradeExportAdmin(@RequestBody PageComActWalletTradeAdminDTO pageTradeAdminDTO) {
        return comActUserWalletTradeService.getTradeUserTotalWalletTradeExportAdmin(pageTradeAdminDTO);
    }
 
    @PostMapping("/trade/reward/export")
    public R getTradeUserTotalJLWalletTradeExportAdmin(@RequestBody PageComActWalletTradeAdminDTO pageTradeAdminDTO) {
        return comActUserWalletTradeService.getTradeUserTotalJLWalletTradeExportAdmin(pageTradeAdminDTO);
    }
 
}