|
|
@@ -556,7 +556,8 @@ public class DistributeServiceImpl implements DistributeService {
|
|
|
}
|
|
|
UserDistribute superUser = userDistributeMapper.selectOne(Wrappers.lambdaQuery(UserDistribute.class)
|
|
|
.eq(UserDistribute::getUserId, userDistributeSub.getUserId())
|
|
|
- .eq(UserDistribute::getDeleted, 1));
|
|
|
+ .eq(UserDistribute::getDeleted, 1)
|
|
|
+ .last("limit 1"));
|
|
|
if (superUser == null) {
|
|
|
throw BusinessRuntimeException.getInstance("上级渠道不存在");
|
|
|
}
|