From 2e64c232ab6b51b2cecf1ee96e1e9b709234f326 Mon Sep 17 00:00:00 2001
From: huanghongfa <huanghongfa123456>
Date: 星期六, 21 八月 2021 16:35:14 +0800
Subject: [PATCH] 随手拍改版接口开发

---
 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComActUserWalletTradeService.java |   37 +++++++++++++++++++++++++++++++++++++
 1 files changed, 37 insertions(+), 0 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComActUserWalletTradeService.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComActUserWalletTradeService.java
index 78f8627..b0bbcab 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComActUserWalletTradeService.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComActUserWalletTradeService.java
@@ -1,9 +1,12 @@
 package com.panzhihua.service_community.service;
 
 import com.baomidou.mybatisplus.extension.service.IService;
+import com.panzhihua.common.model.dtos.community.wallet.PageComActWalletTradeAdminDTO;
 import com.panzhihua.common.model.dtos.community.wallet.PageComActWalletTradeDTO;
 import com.panzhihua.common.model.vos.R;
 import com.panzhihua.service_community.model.dos.ComActUserWalletTradeDO;
+
+import java.math.BigDecimal;
 
 /**
  * @auther lyq
@@ -19,4 +22,38 @@
      */
     R getWalletTrade(PageComActWalletTradeDTO walletTradeDTO);
 
+    /**
+     * 新增钱包交易记录
+     * @param userId    用户id
+     * @param communityId   社区id
+     * @param serviceId     交易业务id
+     * @param amount    交易金额
+     * @param type  交易类型(1.发布随手拍 2.结算)
+     * @param remark    交易备注
+     * @param createBy  操作人id
+     * @param walletId  钱包id
+     * @param changeType    变动类型(1.增加  2.减少)
+     */
+    Long addWalletTrade(Long userId, Long communityId, Long serviceId, BigDecimal amount,Integer type,String remark,Long createBy,Long walletId,Integer changeType);
+
+    /**
+     * 分页查询交易记录
+     *
+     * @param pageTradeAdminDTO 请求参数
+     * @return 交易记录列表
+     */
+    R pageUserWalletTradeAdmin(PageComActWalletTradeAdminDTO pageTradeAdminDTO);
+
+    /**
+     * 查询用户交易记录总额
+     * @param pageTradeAdminDTO 请求参数
+     * @return  交易记录总额
+     */
+    R getTradeUserTotalWalletTradeAdmin(PageComActWalletTradeAdminDTO pageTradeAdminDTO);
+
+    R getTradeUserTotalWalletTradeExportAdmin(PageComActWalletTradeAdminDTO pageTradeAdminDTO);
+
+    R getTradeUserTotalJLWalletTradeExportAdmin(PageComActWalletTradeAdminDTO pageTradeAdminDTO);
+
+    R getTradeUserStatisticsAdmin(PageComActWalletTradeAdminDTO pageTradeAdminDTO);
 }

--
Gitblit v1.7.1