|
@@ -1083,9 +1083,10 @@ public class OrderDonServiceImpl extends ServiceImpl<OrderDonMapper, OrderDon> i
|
|
|
//返回银河币
|
|
//返回银河币
|
|
|
UserGalaxyCoinRecord userGalaxyCoinRecord = userGalaxyCoinRecordMapper.selectOne(Wrappers.lambdaQuery(UserGalaxyCoinRecord.class)
|
|
UserGalaxyCoinRecord userGalaxyCoinRecord = userGalaxyCoinRecordMapper.selectOne(Wrappers.lambdaQuery(UserGalaxyCoinRecord.class)
|
|
|
.eq(UserGalaxyCoinRecord::getOrderId, orderDon.getId())
|
|
.eq(UserGalaxyCoinRecord::getOrderId, orderDon.getId())
|
|
|
|
|
+ .eq(UserGalaxyCoinRecord::getSource, OrderDonGalaxyCoinRecord.Source.ordinary.ordinal())
|
|
|
.last("limit 1"));
|
|
.last("limit 1"));
|
|
|
if (userGalaxyCoinRecord != null) {
|
|
if (userGalaxyCoinRecord != null) {
|
|
|
- userGalaxyCoinService.sendGalaxyCoinRecord(orderDon.getUserId(), userGalaxyCoinRecord.getGalaxyCoin().intValue(), PointsRecordConst.ORDER_CLOSE, false);
|
|
|
|
|
|
|
+ userGalaxyCoinService.sendOrderGalaxyCloseOrder(orderDon.getId(), orderDon.getUserId(), userGalaxyCoinRecord.getGalaxyCoin().abs(), OrderDonGalaxyCoinRecord.Source.ordinary);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//是否是礼品卡 现金支付订单
|
|
//是否是礼品卡 现金支付订单
|
|
@@ -4283,6 +4284,14 @@ public class OrderDonServiceImpl extends ServiceImpl<OrderDonMapper, OrderDon> i
|
|
|
if (orderDon.getBalance().compareTo(BigDecimal.ZERO) > 0) {
|
|
if (orderDon.getBalance().compareTo(BigDecimal.ZERO) > 0) {
|
|
|
userBenefitsService.addUserBalance(orderDon.getUserId(), orderDon.getBalance(), null, null, null, null, false);
|
|
userBenefitsService.addUserBalance(orderDon.getUserId(), orderDon.getBalance(), null, null, null, null, false);
|
|
|
}
|
|
}
|
|
|
|
|
+ //返回银河币
|
|
|
|
|
+ UserGalaxyCoinRecord userGalaxyCoinRecord = userGalaxyCoinRecordMapper.selectOne(Wrappers.lambdaQuery(UserGalaxyCoinRecord.class)
|
|
|
|
|
+ .eq(UserGalaxyCoinRecord::getOrderId, orderDon.getId())
|
|
|
|
|
+ .eq(UserGalaxyCoinRecord::getSource, OrderDonGalaxyCoinRecord.Source.upgrade.ordinal())
|
|
|
|
|
+ .last("limit 1"));
|
|
|
|
|
+ if (userGalaxyCoinRecord != null) {
|
|
|
|
|
+ userGalaxyCoinService.sendOrderGalaxyCloseOrder(orderDon.getId(), orderDon.getUserId(), userGalaxyCoinRecord.getGalaxyCoin().abs(), OrderDonGalaxyCoinRecord.Source.upgrade);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|