| | |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | 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; |
| | |
| | | import com.ruoyi.common.utils.MapUtils; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.common.utils.uuid.UUID; |
| | | import com.ruoyi.domain.*; |
| | | import com.ruoyi.domain.dto.*; |
| | | import com.ruoyi.mapper.ZInfoUserMapper; |
| | |
| | | private ZfClanService zfClanService; |
| | | |
| | | |
| | | |
| | | /** 使相同用户名+电话号码相同的用户对应的uaid同步*/ |
| | | @Override |
| | | public void setUaidSame(String phone, String username,String uniqueId){ |
| | | UpdateWrapper<ZInfoUser> wrapper = new UpdateWrapper<>(); |
| | | wrapper.eq(phone!=null,"phone_number", phone) |
| | | .eq(username!=null,"old_name",username) |
| | | .set("uaid",uniqueId ); |
| | | this.update(null, wrapper); // 执行更新 |
| | | } |
| | | |
| | | |
| | | |
| | | @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) { |
| | | |
| | |
| | | |
| | | @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.le(zInfoUser.getBirth() != null, ZInfoUser::getBirth, zInfoUser.getBirth()); |
| | | lqw.like(zInfoUser.getClanId() != null, ZInfoUser::getClanId, zInfoUser.getClanId()); |
| | | |
| | | lqw.le(zInfoUser.getUaid()!=null, ZInfoUser::getUaid, zInfoUser.getUserId()); |
| | | lqw.eq(zInfoUser.getUaid() !=null, ZInfoUser::getUaid, zInfoUser.getUaid()); |
| | | return lqw; |
| | | |
| | | } |