|
@@ -282,7 +282,13 @@ public class FamilyController extends AppBaseController {
|
|
if (id == null){
|
|
if (id == null){
|
|
return AjaxResult.error("id不能为空");
|
|
return AjaxResult.error("id不能为空");
|
|
}
|
|
}
|
|
- TbFamily family = familyService.getById(id);
|
|
|
|
|
|
+ LambdaQueryWrapper<TbFamily> lqw = new LambdaQueryWrapper<>();
|
|
|
|
+ lqw.eq(TbFamily::getId ,id);
|
|
|
|
+ List<AppFamilyVo> list = familyService.pageList(lqw);
|
|
|
|
+ if (list.size() <= 0) {
|
|
|
|
+ return AjaxResult.success();
|
|
|
|
+ }
|
|
|
|
+ AppFamilyVo family = list.get(0);
|
|
return AjaxResult.success(family);
|
|
return AjaxResult.success(family);
|
|
}
|
|
}
|
|
|
|
|