| | |
| | | if( userOfMobilephone.getUId()!=0 && !userFound.getUId().equals(user.getUId())){ |
| | | return new Response().set(1,false,"手机号重复"); |
| | | } |
| | | user.setUpassword(null); |
| | | user.setUSnId(null); |
| | | if(userMapper.updateById(user)>0){ |
| | | return new Response().set(1,true,"修改成功"); |
| | | }else{ |
| | |
| | | public UserInf getUserByUKeyId(String uKeyId){ |
| | | QueryWrapper queryWrapper = new QueryWrapper(); |
| | | queryWrapper.eq("uKey_ID",uKeyId); |
| | | queryWrapper.last("limit 1"); |
| | | UserInf userInf = userMapper.selectOne(queryWrapper); |
| | | return userInf; |
| | | } |
| | |
| | | public UserInf getUserByUserName(String userName){ |
| | | QueryWrapper queryWrapper = new QueryWrapper(); |
| | | queryWrapper.eq("Uname",userName); |
| | | queryWrapper.last("limit 1"); |
| | | UserInf userInf = userMapper.selectOne(queryWrapper); |
| | | return userInf; |
| | | } |
| | | |
| | | public boolean bindUkey(UserInf userInf){ |
| | | UpdateWrapper updateWrapper = new UpdateWrapper(); |
| | | updateWrapper.set("uKey_ID",userInf.getUkeyId()); |
| | | updateWrapper.eq("uName",userInf.getUName()); |
| | | int affectRows = userMapper.update(userInf,updateWrapper); |
| | | int affectRows = userMapper.update((UserInf) ActionUtil.objeNull,updateWrapper); |
| | | return affectRows>0; |
| | | } |
| | | |