|
@@ -152,7 +152,7 @@ public class PointsRechargeServiceImpl extends ServiceImpl<PointsRechargeMapper,
|
|
|
pointsRecord.setExpiryDate(pointsRecharge.getExpiryDate());
|
|
|
|
|
|
Long aLong = pointsRecordMapper.statisticsPoint(pointsRecord.getUserId(), Math.toIntExact(pointsRecord.getChannelId()));
|
|
|
- pointsRecord.setCurrentlyAvailablePoints(BigDecimal.valueOf(aLong));
|
|
|
+ pointsRecord.setCurrentlyAvailablePoints(pointsRecord.getPoints().add(BigDecimal.valueOf(aLong == null ? 0 : aLong )));
|
|
|
|
|
|
pointsRecordService.save(pointsRecord);
|
|
|
successCount++;
|