| | |
| | | return status; |
| | | } |
| | | |
| | | // /** |
| | | // * 查询用户信息(包含用户基本信息及是否缴费/会员) |
| | | // * @param userVip |
| | | // * @return |
| | | // */ |
| | | // @Override |
| | | // public Object getUserVipInfo(UserVip userVip) { |
| | | // // 根据身份证号查询用户信息 |
| | | // User user = new User(); |
| | | // user.setCardid(userVip.getIdCardNo()); |
| | | // user.setStatus(1); |
| | | // user.setIsDeleted(0); |
| | | // User user1 = userService.getOne(Condition.getQueryWrapper(user)); |
| | | // if (null!=user1){ |
| | | // UserVip userVip1 = new UserVip(); |
| | | // userVip1.setUserId(user1.getId()); |
| | | // UserVip vip = this.getOne(Condition.getQueryWrapper(userVip1)); |
| | | // if (null!=vip){ |
| | | // UserVipVO vipVO = new UserVipVO(); |
| | | // vipVO.setIdCardNo(user1.getCardid()); |
| | | // vipVO.setSex(user1.getSex()); |
| | | // vipVO.setRealName(user1.getRealName()); |
| | | // return vipVO; |
| | | // } |
| | | // } |
| | | // return null; |
| | | // } |
| | | |
| | | /** |
| | | * 查询用户信息(包含用户基本信息及是否缴费/会员) |
| | | * @param userVip |
| | |
| | | */ |
| | | @Override |
| | | public Object getUserVipInfo(UserVip userVip) { |
| | | // 根据身份证号查询用户信息 |
| | | User user = new User(); |
| | | user.setCardid(userVip.getIdCardNo()); |
| | | user.setStatus(1); |
| | | user.setIsDeleted(0); |
| | | User user1 = userService.getOne(Condition.getQueryWrapper(user)); |
| | | if (null!=user1){ |
| | | UserVip userVip1 = new UserVip(); |
| | | userVip1.setUserId(user1.getId()); |
| | | UserVip vip = this.getOne(Condition.getQueryWrapper(userVip1)); |
| | | if (null!=vip){ |
| | | UserVipVO vipVO = new UserVipVO(); |
| | | vipVO.setIdCardNo(user1.getCardid()); |
| | | vipVO.setSex(user1.getSex()); |
| | | vipVO.setRealName(user1.getRealName()); |
| | | return vipVO; |
| | | } |
| | | } |
| | | return null; |
| | | UserVip userVip1 = new UserVip(); |
| | | userVip1.setUserId(Long.parseLong(userVip.getIdCardNo())); |
| | | //返回 |
| | | return this.getOne(Condition.getQueryWrapper(userVip1)); |
| | | } |
| | | } |