| | |
| | | return false; |
| | | // System.out.println(tfid); |
| | | // System.out.println("00000000000---------------"); |
| | | ZInfoUser infu = this.getById(getInfoById(tfid)); |
| | | ZInfoUser infu = this.getById(tfid); |
| | | if(infu==null) |
| | | return false; |
| | | if(infu.getFatherId()!=null && uid.equals(infu.getFatherId())) |
| | |
| | | if(infu.getMomId()!=null && uid.equals(infu.getMomId())) |
| | | return true; |
| | | return findByuid(uid, infu.getFatherId()) || findByuid(uid, infu.getMomId()); |
| | | } |
| | | |
| | | @Override |
| | | public List<ZInfoUser> selectByClanId(Integer clanId) { |
| | | ZInfoUser zInfoUser = new ZInfoUser(); |
| | | zInfoUser.setClanId(clanId); |
| | | LambdaQueryWrapper<ZInfoUser> lqw = buildCondition(zInfoUser); |
| | | return list(lqw); |
| | | } |
| | | |
| | | @Override |
| | |
| | | else |
| | | return null; |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public List<ZInfoUser> getDataBySex(Integer sex){ |
| | |
| | | lqw.like(zInfoUser.getSex() != null, ZInfoUser::getSex, zInfoUser.getSex()); |
| | | lqw.like(zInfoUser.getMaritalStatus() != null, ZInfoUser::getMaritalStatus, zInfoUser.getMaritalStatus()); |
| | | lqw.like(zInfoUser.getBirth() != null, ZInfoUser::getBirth, zInfoUser.getBirth()); |
| | | lqw.like(zInfoUser.getClanId() != null, ZInfoUser::getClanId, zInfoUser.getClanId()); |
| | | return lqw; |
| | | |
| | | } |
| | |
| | | |
| | | if (zInfoUser.getSpouseId() != null) { |
| | | ZInfoUser spouse = getById(zInfoUser.getSpouseId()); |
| | | |
| | | |
| | | Genealogy spouseInfo = new Genealogy(); |
| | | BeanUtils.copyProperties(spouse,spouseInfo); |
| | | newGenealogy.setSpouse(spouseInfo); |