提现 / 定时任务

This commit is contained in:
2024-12-04 18:18:38 +08:00
parent 32a8eb78d6
commit d26a250761
16 changed files with 338 additions and 69 deletions

View File

@@ -9,6 +9,8 @@ public interface UserMoneyDao extends BaseMapper<UserMoney> {
void updateMayMoney(@Param("type") Integer type, @Param("userId")Long userId, @Param("money") Double money);
void updateMayAmount(@Param("type") Integer type, @Param("userId")Long userId, @Param("money") Double amount);
void updateSysMoney(@Param("type") Integer type, @Param("sysUserId")Long sysUserId, @Param("money") Double money);
}

View File

@@ -32,6 +32,12 @@ public class UserMoney implements Serializable {
@ApiModelProperty("钱包金豆")
private BigDecimal money;
/**
* 钱包金豆
*/
@ApiModelProperty("钱包余额 钱")
private BigDecimal amount;
/**
* 用户id
*/

View File

@@ -11,6 +11,8 @@ public interface UserMoneyService extends IService<UserMoney> {
void updateMoney(int i, Long userId, double money);
void updateAmount(int i, Long userId, double amount);
void updateSysMoney(int i, Long userId, double money);
}

View File

@@ -18,6 +18,12 @@ public class UserMoneyServiceImpl extends ServiceImpl<UserMoneyDao, UserMoney> i
baseMapper.updateMayMoney(i,userId,money);
}
@Override
public void updateAmount(int i, Long userId, double amount){
selectUserMoneyByUserId(userId);
baseMapper.updateMayAmount(i,userId,amount);
}
@Override
public void updateSysMoney(int i, Long userId, double money){
selectSysUserMoneyByUserId(userId);