|
|
@@ -125,6 +125,7 @@ public class UserGalaxyCoinServiceImpl implements UserGalaxyCoinService {
|
|
|
public void subOrderGenerateGalaxyCoin(Long orderId) {
|
|
|
UserGalaxyCoinRecord userGalaxyCoinRecord = userGalaxyCoinRecordMapper.selectOne(Wrappers.lambdaQuery(UserGalaxyCoinRecord.class)
|
|
|
.eq(UserGalaxyCoinRecord::getOrderId, orderId)
|
|
|
+ .eq(UserGalaxyCoinRecord::getRemark, PointsRecordConst.ORDER_CASHBACK)
|
|
|
.last("limit 1"));
|
|
|
if (userGalaxyCoinRecord != null) {
|
|
|
BigDecimal remainGalaxyCoin = userGalaxyCoinRecord.getRemainGalaxyCoin();
|
|
|
@@ -153,4 +154,9 @@ public class UserGalaxyCoinServiceImpl implements UserGalaxyCoinService {
|
|
|
orderDonGalaxyCoinRecordMapper.updateById(orderDonGalaxyCoinRecord);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void sendOrderCashback(Long orderId, Long userId, Integer galaxyCoin, String remark) {
|
|
|
+ sendGalaxyCoinHandle(userId, orderId, galaxyCoin, remark, true, true);
|
|
|
+ }
|
|
|
}
|