提现 / 定时任务
This commit is contained in:
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
@@ -32,6 +32,12 @@ public class UserMoney implements Serializable {
|
||||
@ApiModelProperty("钱包金豆")
|
||||
private BigDecimal money;
|
||||
|
||||
/**
|
||||
* 钱包金豆
|
||||
*/
|
||||
@ApiModelProperty("钱包余额 钱")
|
||||
private BigDecimal amount;
|
||||
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
|
||||
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user