发展基金相关实现-增加发展基金

This commit is contained in:
2025-02-17 15:57:20 +08:00
parent 7cd193f8a2
commit c18db6ffd3
2 changed files with 24 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
package com.buy507.mall.mapper;
import com.buy507.mall.model.UmsDevelopmentFund;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import java.math.BigDecimal;
@@ -26,6 +27,20 @@ public interface UmsDevelopmentFundMapper {
*/
@Select("SELECT SUM(points_total) FROM ums_development_fund")
Integer getTotalPoints();
/**
* 发展基金现金流水
* @param payAmount
*/
@Insert("INSERT INTO ums_development_fund (cash_total, updated_at) VALUES (#{payAmount}, NOW())")
void insertCash(BigDecimal payAmount);
/**
* 发展基金积分流水
* @param rewardPoints
*/
@Insert("INSERT INTO ums_development_fund (points_total, updated_at) VALUES (#{rewardPoints}, NOW())")
void insertPoints(BigDecimal rewardPoints);
}