From 3447c6321d90416d86bd6bd6515589bae3911c65 Mon Sep 17 00:00:00 2001
From: Administrator <zhubaomin>
Date: 星期三, 31 一月 2024 15:36:52 +0800
Subject: [PATCH] 2024-01-31 朱宝民 电子钱包账户消费接口、申请退款接口、审核退款申请接口
---
pipIrr-platform/pipIrr-web/pipIrr-web-sell/src/main/java/com/dy/pipIrrSell/wallet/WalletSv.java | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++----
1 files changed, 50 insertions(+), 4 deletions(-)
diff --git a/pipIrr-platform/pipIrr-web/pipIrr-web-sell/src/main/java/com/dy/pipIrrSell/wallet/WalletSv.java b/pipIrr-platform/pipIrr-web/pipIrr-web-sell/src/main/java/com/dy/pipIrrSell/wallet/WalletSv.java
index 96f565e..56626f5 100644
--- a/pipIrr-platform/pipIrr-web/pipIrr-web-sell/src/main/java/com/dy/pipIrrSell/wallet/WalletSv.java
+++ b/pipIrr-platform/pipIrr-web/pipIrr-web-sell/src/main/java/com/dy/pipIrrSell/wallet/WalletSv.java
@@ -4,6 +4,8 @@
import com.dy.pipIrrGlobal.daoSe.SeRefundMapper;
import com.dy.pipIrrGlobal.daoSe.SeWalletMapper;
import com.dy.pipIrrGlobal.daoSe.SeWalletRechargeMapper;
+import com.dy.pipIrrGlobal.pojoSe.SeConsume;
+import com.dy.pipIrrGlobal.pojoSe.SeRefund;
import com.dy.pipIrrGlobal.pojoSe.SeWallet;
import com.dy.pipIrrGlobal.pojoSe.SeWalletRecharge;
import lombok.extern.slf4j.Slf4j;
@@ -51,10 +53,6 @@
return po.getId();
}
- public Integer updateWallet(SeWallet po) {
- return seWalletMapper.updateByPrimaryKeySelective(po);
- }
-
/**
* 鐢靛瓙閽卞寘鍏呭��
* @param po
@@ -65,4 +63,52 @@
return po.getId();
}
+ /**
+ * 鐢靛瓙閽卞寘娑堣垂
+ * @param po
+ * @return
+ */
+ public Long addConsume(SeConsume po) {
+ seConsumeMapper.insert(po);
+ return po.getId();
+ }
+
+ /**
+ * 娣诲姞閫�娆剧敵璇�
+ * @param po
+ * @return
+ */
+ public Long addRefund(SeRefund po) {
+ seRefundMapper.insert(po);
+ return po.getId();
+ }
+
+ /**
+ * 鏍规嵁閽卞寘ID鑾峰彇寰呭鏍哥殑閫�娆剧敵璇峰璞�
+ * @param walletId
+ * @return
+ */
+ public SeRefund getRefundByWallerId(Long walletId) {
+ return seRefundMapper.getRefundByWallerId(walletId);
+ }
+
+ /**
+ * 瀹℃牳閫�娆剧敵璇�
+ * @param po
+ * @return
+ */
+ public Integer auditRefund(SeRefund po) {
+ return seRefundMapper.updateByPrimaryKeySelective(po);
+ }
+
+ /**
+ * 淇敼鐢靛瓙閽卞寘
+ * 鍏呭�笺�佹秷璐广�佺敵璇烽��娆俱�佸鏍搁��娆炬椂闇�瑕佷慨鏀圭數瀛愰挶鍖呯殑锛氫綑棰濄�佹渶鍚庢搷浣溿�佹渶鍚庢搷浣滄椂闂�
+ * @param po
+ * @return
+ */
+ public Integer updateWallet(SeWallet po) {
+ return seWalletMapper.updateByPrimaryKeySelective(po);
+ }
+
}
--
Gitblit v1.8.0