|
@@ -179,7 +179,8 @@ public class AppUserServiceImpl extends ServiceImpl<AppUserMapper, AppUser> impl
|
|
@Override
|
|
@Override
|
|
@DataSource(DataSourceType.SLAVE)
|
|
@DataSource(DataSourceType.SLAVE)
|
|
public int updateUserAmount(FinTranRecord finTranRecord,boolean withdrawAble,boolean coinCashFlag){
|
|
public int updateUserAmount(FinTranRecord finTranRecord,boolean withdrawAble,boolean coinCashFlag){
|
|
- int res = 0;
|
|
|
|
|
|
+ throw new ServiceException("平台已关闭,禁止交易");
|
|
|
|
+ /*int res = 0;
|
|
int finRes = 0;
|
|
int finRes = 0;
|
|
RLock rLock = redisson.getLock("app_user_amount_".concat(String.valueOf(finTranRecord.getUid())));
|
|
RLock rLock = redisson.getLock("app_user_amount_".concat(String.valueOf(finTranRecord.getUid())));
|
|
boolean tryLock = false;
|
|
boolean tryLock = false;
|
|
@@ -242,7 +243,7 @@ public class AppUserServiceImpl extends ServiceImpl<AppUserMapper, AppUser> impl
|
|
}
|
|
}
|
|
rLock.unlock();
|
|
rLock.unlock();
|
|
}
|
|
}
|
|
- return res;
|
|
|
|
|
|
+ return res;*/
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|