| | |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | |
| | | |
| | | @Override |
| | | public void setSpouseOnly(Long spouse){ |
| | | UpdateWrapper<ZInfoUser> wrapper = new UpdateWrapper<>(); |
| | | System.out.println("{{{{{{{{{{{{{"+spouse); |
| | | wrapper.eq("spouse_id", spouse) // 使用字符串字段名 |
| | | .set("spouse_id", null); // 直接设置字段值 |
| | | this.update(null, wrapper); // 执行更新 |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public AjaxResult selectInfoList(ZInfoUser zInfoUser, Integer pageNum, Integer pageSize) { |
| | | |
| | | LambdaQueryWrapper<ZInfoUser> lqw = buildCondition(zInfoUser); |
| | |
| | | |
| | | @Override |
| | | public List<ZInfoUser> findByUaidToFaid(String usid) { |
| | | ZInfoUser zInfoUser = new ZInfoUser(); |
| | | zInfoUser.setUaid(usid); |
| | | LambdaQueryWrapper<ZInfoUser> lqw = buildCondition(zInfoUser); |
| | | return list(lqw); |
| | | if(usid!=null) { |
| | | ZInfoUser zInfoUser = new ZInfoUser(); |
| | | zInfoUser.setUaid(usid); |
| | | LambdaQueryWrapper<ZInfoUser> lqw = buildCondition(zInfoUser); |
| | | List<ZInfoUser> ls = list(lqw); |
| | | // System.out.println(ls.size()+":==========sdfs55dfsdf"); |
| | | return ls; |
| | | }else { |
| | | return new ArrayList<>(); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | |
| | | lqw.like(zInfoUser.getMaritalStatus() != null, ZInfoUser::getMaritalStatus, zInfoUser.getMaritalStatus()); |
| | | lqw.le(zInfoUser.getBirth() != null, ZInfoUser::getBirth, zInfoUser.getBirth()); |
| | | lqw.like(zInfoUser.getClanId() != null, ZInfoUser::getClanId, zInfoUser.getClanId()); |
| | | |
| | | lqw.eq(zInfoUser.getUaid() !=null, ZInfoUser::getUaid, zInfoUser.getUaid()); |
| | | return lqw; |
| | | |
| | | } |