回调报错修复
This commit is contained in:
@@ -88,6 +88,9 @@ public class ShopUserServiceImpl extends ServiceImpl<ShopUserMapper, ShopUser> i
|
||||
throw new ApiNotPrintException("增减用户余额操作失败");
|
||||
}
|
||||
|
||||
if (userInfo.getAmount() == null) {
|
||||
userInfo.setAmount(BigDecimal.ZERO);
|
||||
}
|
||||
userFlow.setUserId(userInfo.getUserId());
|
||||
userFlow.setShopId(userInfo.getSourceShopId());
|
||||
userFlow.setAmount(shopUserEditDTO.getType() == 0 ? shopUserEditDTO.getMoney().negate() : shopUserEditDTO.getMoney());
|
||||
|
||||
Reference in New Issue
Block a user