取消提现限制

This commit is contained in:
zhujunshuai
2023-03-21 13:47:32 +08:00
parent 8ef03ab28f
commit 1aa2f8c5f0
2 changed files with 10 additions and 3 deletions

View File

@@ -221,10 +221,11 @@ public class CashServiceImpl extends ServiceImpl<CashMapper, Cash> implements Ca
.last("limit 1");
Cash existData = getOne(qWrapper);
if (existData != null && DateUtil.isSameDay(new Date(), existData.getCreateDt())) {
//TODO 注释提现限制,后面要取消
/* if (existData != null && DateUtil.isSameDay(new Date(), existData.getCreateDt())) {
throw new MsgException("一天只能提现一次");
}
*/
LambdaQueryWrapper<CashAccount> qWrapper2 = Wrappers.lambdaQuery();
qWrapper2.eq(CashAccount::getUserId, cash.getUserId())
.last("limit 1");