| | |
| | | } |
| | | |
| | | @Override |
| | | public List<ZInfoUser> selectByClanId(Integer clanId) { |
| | | ZInfoUser zInfoUser = new ZInfoUser(); |
| | | zInfoUser.setClanId(clanId); |
| | | LambdaQueryWrapper<ZInfoUser> lqw = buildCondition(zInfoUser); |
| | | return list(lqw); |
| | | } |
| | | |
| | | @Override |
| | | public ZInfoUser getInfoBysysId(Long sysid) { |
| | | LambdaQueryWrapper<ZInfoUser> lqw = new LambdaQueryWrapper<>(); |
| | | lqw.eq(ZInfoUser::getSysId, sysid); |
| | |
| | | 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); |