update:
1.fix
This commit is contained in:
@@ -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) {
|
if (Objects.isNull(order.getId()) || Objects.isNull(order.getUserId()) || Objects.isNull(order.getActualAmount()) || order.getActualAmount().compareTo(BigDecimal.ZERO) < 1) {
|
||||||
throw new ServiceException("无效订单");
|
throw new ServiceException("无效订单");
|
||||||
}
|
}
|
||||||
BigDecimal pointsAmount = order.getActualAmount().multiply(BigDecimal.valueOf(0.3));
|
BigDecimal pointsAmount = order.getActualAmount();
|
||||||
BusinessModule sourceType = BusinessModule.fromCodeIgnoreCase(order.getOrderType());
|
BusinessModule sourceType = BusinessModule.fromCodeIgnoreCase(order.getOrderType());
|
||||||
CommonUserPointEntity userPoint = getById(order.getUserId());
|
CommonUserPointEntity userPoint = getById(order.getUserId());
|
||||||
BigDecimal lastAmount = userPoint.getAmount();
|
BigDecimal lastAmount = userPoint.getAmount();
|
||||||
|
|||||||
Reference in New Issue
Block a user