From 7869fa712c19c351a48bfb0af11b0fe87b17c184 Mon Sep 17 00:00:00 2001
From: rk <94314517@qq.com>
Date: 星期三, 14 一月 2026 15:14:00 +0800
Subject: [PATCH] 小程序 用户端接口开发
---
server/dmmall_service/src/main/java/com/doumee/dao/business/ShopMapper.java | 19 +++++++++++++++++--
1 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/server/dmmall_service/src/main/java/com/doumee/dao/business/ShopMapper.java b/server/dmmall_service/src/main/java/com/doumee/dao/business/ShopMapper.java
index 4bcd2be..f899062 100644
--- a/server/dmmall_service/src/main/java/com/doumee/dao/business/ShopMapper.java
+++ b/server/dmmall_service/src/main/java/com/doumee/dao/business/ShopMapper.java
@@ -16,7 +16,7 @@
/**
* 娣诲姞绉垎
- * @param memberId
+ * @param shopId
* @param integral
*/
@Select(" update shop set INTEGRAL = ifNull( INTEGRAL,0) + #{integral} , TOTAL_INTEGRAL = ifNull(TOTAL_INTEGRAL,0) + #{titleIntegral} , EDIT_DATE = now() where id = #{shopId} ")
@@ -24,12 +24,27 @@
/**
* 鍑忓皯绉垎
- * @param memberId
+ * @param shopId
* @param integral
*/
@Select(" update shop set INTEGRAL = ifNull( INTEGRAL,0) - #{integral} , EDIT_DATE = now() where id = #{shopId} ")
void subtractIntegral(@Param("shopId") Integer shopId , @Param("integral")BigDecimal integral);
+ /**
+ * 娣诲姞浣欓
+ * @param shopId
+ * @param amount
+ */
+ @Select(" update shop set AMOUNT = ifNull(AMOUNT,0) + #{amount} , TOTAL_AMOUNT = ifNull(TOTAL_AMOUNT,0) + #{titleAmount} , EDIT_DATE = now() where id = #{shopId} ")
+ void addAmount(@Param("shopId") Integer shopId , @Param("amount") BigDecimal amount , @Param("titleAmount")BigDecimal titleAmount);
+
+ /**
+ * 鍑忓皯浣欓
+ * @param shopId
+ * @param amount
+ */
+ @Select(" update shop set AMOUNT = ifNull( AMOUNT,0) - #{amount} , EDIT_DATE = now() where id = #{shopId} ")
+ void subtractAmount(@Param("shopId") Integer shopId , @Param("amount")BigDecimal amount);
}
--
Gitblit v1.9.3