init
This commit is contained in:
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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 自动打款
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user