nnnn
This commit is contained in:
@@ -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());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user