From 70d2a5d0f9c6951b2d4cac954041ed73582ff7eb Mon Sep 17 00:00:00 2001 From: liujie <1793218484@qq.com> Date: 星期一, 09 六月 2025 11:54:00 +0800 Subject: [PATCH] 6.9新增登录失败冻结逻辑 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComActUserWalletApi.java | 63 ++++++++++++++++++++++++++----- 1 files changed, 52 insertions(+), 11 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComActUserWalletApi.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComActUserWalletApi.java index b427f1e..75e84bb 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComActUserWalletApi.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComActUserWalletApi.java @@ -1,16 +1,20 @@ package com.panzhihua.service_community.api; -import com.panzhihua.common.model.dtos.community.easyPhoto.PageEasyPhotoActivityDTO; +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; -import org.springframework.web.bind.annotation.*; -import javax.annotation.Resource; +import lombok.extern.slf4j.Slf4j; @Slf4j @RestController @@ -24,28 +28,65 @@ /** * 分页查询收益结算列表 - * @param pageWalletAdminDTO 请求参数 - * @return 收益结算列表 + * + * @param pageWalletAdminDTO + * 请求参数 + * @return 收益结算列表 */ @PostMapping("/page") - public R page(@RequestBody PageComActWalletAdminDTO pageWalletAdminDTO){ + public R page(@RequestBody PageComActWalletAdminDTO pageWalletAdminDTO) { return comActUserWalletService.pageUserWalletAdmin(pageWalletAdminDTO); } /** * 用户结算收益 - * @param settlementAdminDTO 请求参数 - * @return 结算结果 + * + * @param settlementAdminDTO + * 请求参数 + * @return 结算结果 */ @PostMapping("/settlement") - public R settlement(@RequestBody ComActWalletSettlementAdminDTO settlementAdminDTO){ + public R settlement(@RequestBody ComActWalletSettlementAdminDTO settlementAdminDTO) { return comActUserWalletService.userWalletSettlementAdmin(settlementAdminDTO); } + /** + * 分页查询交易记录 + * + * @param pageTradeAdminDTO + * 请求参数 + * @return 交易记录列表 + */ @PostMapping("/trade/page") - public R tradePage(@RequestBody PageComActWalletTradeAdminDTO pageTradeAdminDTO){ + 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); + } } -- Gitblit v1.7.1