This commit is contained in:
77
2024-03-18 21:01:57 +08:00
parent eaea74350b
commit 02e8ea8f2f
5 changed files with 26 additions and 2 deletions

View File

@@ -21,4 +21,7 @@ public interface UserExtendMapper extends BaseMapper<UserExtend> {
boolean incrIncome(@Param("userId") Long userId, @Param("price") BigDecimal price);
Page<UserExtendAdminVo> pageAdmin(@Param("build") Page<Object> build, @Param("bo") UserExtendAdminVo bo);
boolean incsWithdrawCount(@Param("userId") Long userId, @Param("withdrawMonty") BigDecimal withdrawMonty);
}

View File

@@ -20,6 +20,8 @@ public interface UserExtendService extends IService<UserExtend> {
boolean withdraw(Long userId, BigDecimal withdrawPrice);
void resetWithdraw(Long userId, BigDecimal withdrawMoney, String traceId);
boolean incsWithdrawCount(Long userId, BigDecimal withdrawMonty);
Page<UserExtendAdminVo> pageAdmin(PageQuery pageQuery, UserExtendAdminVo bo);
void updateIncomeCoin(UpdateIncomeCoinReq bo);

View File

@@ -47,6 +47,17 @@ public class UserExtendServiceImpl extends ServiceImpl<UserExtendMapper,UserExte
}
}
/**
* 新增提现统计
* @param userId
* @param withdrawMonty
*/
@Override
public boolean incsWithdrawCount(Long userId, BigDecimal withdrawMonty){
return baseMapper.incsWithdrawCount(userId,withdrawMonty);
}
@Override
public Page<UserExtendAdminVo> pageAdmin(PageQuery pageQuery, UserExtendAdminVo bo) {
return baseMapper.pageAdmin(pageQuery.build(), bo);

View File

@@ -96,8 +96,11 @@ public class UserWithdrawServiceImpl extends ServiceImpl<UserWithdrawMapper,User
.set(UserWithdraw::getAuditOpName, LoginHelper.getUsername())
.set(UserWithdraw::getAuditTime, LocalDateTime.now())
.set(UserWithdraw::getAuditRemark, "审核成功"));
if(flag && autoTrans){
// TODO 自动打款
if(flag){
if(autoTrans){
// TODO 自动打款
}
}
}