Merge remote-tracking branch 'origin/test' into test

This commit is contained in:
2024-08-20 17:05:46 +08:00
15 changed files with 273 additions and 33 deletions

View File

@@ -214,13 +214,17 @@ public class TbShopUserServiceImpl implements TbShopUserService {
if(ObjectUtil.isNull(tbShopUser)){
throw new BadRequestException("不存在的会员信息");
}
String operationType=map.get("operationType").toString();
BigDecimal amount=new BigDecimal(map.get("amount").toString());
if(amount.compareTo(tbShopUser.getAmount())>0){
throw new BadRequestException("账户余额不足,请输入正确的金额");
if("out".equals(operationType)){
if(amount.compareTo(tbShopUser.getAmount())>0){
throw new BadRequestException("账户余额不足,请输入正确的金额");
}
}
String operationType=map.get("operationType").toString();
String type=map.get("type").toString();
TbShopUserFlow flow=new TbShopUserFlow();