|
|
@@ -380,7 +380,7 @@ public class LawyerUserServiceImpl extends ServiceImpl<LawyerUserMapper, LawyerU
|
|
|
List<Integer> lawyerIds = getLawyerIdsByCategoryId(categoryId);
|
|
|
if (lawyerIds.isEmpty()) {
|
|
|
// 如果没有匹配的律师,返回空结果
|
|
|
- return R.data(new Page<>(page, size));
|
|
|
+ return getRecommendedLawyerList(1, 5, null);
|
|
|
}
|
|
|
queryWrapper.in("id", lawyerIds);
|
|
|
}
|
|
|
@@ -397,10 +397,7 @@ public class LawyerUserServiceImpl extends ServiceImpl<LawyerUserMapper, LawyerU
|
|
|
// 为每个律师设置关联的法律问题场景列表
|
|
|
if (pageResult.getRecords() != null && !pageResult.getRecords().isEmpty()) {
|
|
|
setLawyerScenarios(pageResult.getRecords());
|
|
|
- }else {
|
|
|
- return getRecommendedLawyerList(1, 5, null);
|
|
|
}
|
|
|
-
|
|
|
return R.data(pageResult);
|
|
|
}
|
|
|
|