1.fix
This commit is contained in:
2026-05-12 20:36:42 +08:00
parent 7a19eef5f5
commit d96422c142

View File

@@ -105,7 +105,7 @@ public class CommonUserPointServiceImpl extends BaseServiceImpl<CommonUserPointM
if (Objects.isNull(order.getId()) || Objects.isNull(order.getUserId()) || Objects.isNull(order.getActualAmount()) || order.getActualAmount().compareTo(BigDecimal.ZERO) < 1) {
throw new ServiceException("无效订单");
}
BigDecimal pointsAmount = order.getActualAmount().multiply(BigDecimal.valueOf(0.3));
BigDecimal pointsAmount = order.getActualAmount();
BusinessModule sourceType = BusinessModule.fromCodeIgnoreCase(order.getOrderType());
CommonUserPointEntity userPoint = getById(order.getUserId());
BigDecimal lastAmount = userPoint.getAmount();