This commit is contained in:
777
2025-12-09 14:57:16 +08:00
parent 1071ba3fb0
commit cd350392ef

View File

@@ -74,7 +74,7 @@ public class PointRecordLogServiceImpl extends ServiceImpl<PointRecordLogMapper,
} }
if(dto.isDistribution()){ // 需要分销,直接分销 if(dto.isDistribution()){ // 需要分销,直接分销
pointLog.setStatus(ConsumeLogStatus.ALREADY.getCode()); pointLog.setStatus(ConsumeLogStatus.ALREADY.getCode());
if(pointLog.getOnePoints() >= 0 && pointLog.getOneUserId() != null){ if(pointLog.getOnePoints() >= 0 && pointLog.getOneUserId() != null && !pointLog.getOneJoin()){
accountMapper.incrPoint(pointLog.getOneUserId(), pointLog.getOnePoints()); accountMapper.incrPoint(pointLog.getOneUserId(), pointLog.getOnePoints());
} }
}else{ }else{
@@ -134,6 +134,9 @@ public class PointRecordLogServiceImpl extends ServiceImpl<PointRecordLogMapper,
if(pointRecordLog.getOneUserId() == null || pointRecordLog.getPoints() <= 0){ if(pointRecordLog.getOneUserId() == null || pointRecordLog.getPoints() <= 0){
return; return;
} }
if(!pointRecordLog.getOneJoin()){
return;
}
accountMapper.incrPoint(pointRecordLog.getOneUserId(), pointRecordLog.getOnePoints()); accountMapper.incrPoint(pointRecordLog.getOneUserId(), pointRecordLog.getOnePoints());
} }