发展基金相关实现-增加发展基金
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user