| | |
| | | |
| | | |
| | | /** |
| | | * 根据用户的id查询另外一个家族的全部成员信息 |
| | | * |
| | | */ |
| | | @GetMapping("/getAnotherFamInfo/{userId}") |
| | | public AjaxResult getAnotherFamInfo(@PathVariable("userId") Long userId) |
| | | { |
| | | ZInfoUser zInfoUser = new ZInfoUser(); |
| | | zInfoUser.setSysId(userId); |
| | | System.out.println(userId); |
| | | List<ZInfoUser> zInfoUsers = zInfoUserService.selectByCondition(zInfoUser); |
| | | if(!zInfoUsers.isEmpty()) |
| | | { |
| | | |
| | | ZInfoUser zi = new ZInfoUser(); |
| | | zi.setUaid(zInfoUsers.get(0).getUaid()); |
| | | zi.setSysId(userId); |
| | | |
| | | ZInfoUser zss = zInfoUserService.selectByUaidAndUid(zi); |
| | | |
| | | return zInfoUserService.listAllFamilyPeople(zss.getClanId()); |
| | | // return AjaxResult.success("查询成功",zss); |
| | | } |
| | | else |
| | | { |
| | | return AjaxResult.success("没有另外的家族信息", null); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 导出个人详细信息记录列表 |
| | | */ |
| | | // @PreAuthorize("@ss.hasPermi('system:property:export')") |
| | |
| | | return toAjax(zInfoUserService.updateBatchById(list)); |
| | | } |
| | | else |
| | | // uw.eq(ZInfoUser::getSysId,userId).set(ZInfoUser::getSelfIntroduction,zInfoUser.getSelfIntroduction()); |
| | | // uw.eq(ZInfoUser::getSysId,userId).set(ZInfoUser::getSelfIntroduction,zInfoUser.getSelfIntroduction()); |
| | | return toAjax(zInfoUserService.saveOrUpdate(zInfoUser)); |
| | | // saveOrUpdate(zInfoUser)); |
| | | } |
| | |
| | | List<HashMap<Long,String>> satisfyIds = new ArrayList<>(); |
| | | HashMap<Long,String> bs = new HashMap<>(); |
| | | for (ZInfoUser zInfoUser:zInfoUsers) { |
| | | bs.put(zInfoUser.getUserId(),zInfoUser.getNickName()); |
| | | bs.put(zInfoUser.getUserId(),zInfoUser.getNickName()); |
| | | } |
| | | satisfyIds.add(bs); |
| | | return AjaxResult.success(satisfyIds); |