@Test public void testQueryPersonalInfo() throws Exception { userService.queryPersonalInfo(10000L); }
@Override public Map<String, Object> queryPersonalInfo(Long accountId) { User user = userMapper.selectById(accountId); Map<String, Object> map = new HashMap<>(); map.put("imgUrl", user.getHeaderUrl()); map.put("nickname", user.getNickname()); map.put("phone", user.getPhoneNumber()); map.put("qq", user.getQqNumber()); map.put("id", user.getAccountId()); map.put("codePicture", null); map.put("promId", user.getPromoterId()); map.put("promProf", 0); return map; }
UserServiceImpl implements IUserService { @Override public Map<String, Object> queryPersonalInfo(Long accountId) { User user = userMapper.selectById(accountId); Map<String, Object> map = new HashMap<>(); map.put("imgUrl", user.getHeaderUrl()); map.put("nickname", user.getNickname()); map.put("phone", user.getPhoneNumber()); map.put("qq", user.getQqNumber()); map.put("id", user.getAccountId()); map.put("codePicture", null); map.put("promId", user.getPromoterId()); map.put("promProf", 0); return map; } }
UserServiceImpl implements IUserService { @Override public Map<String, Object> queryPersonalInfo(Long accountId) { User user = userMapper.selectById(accountId); Map<String, Object> map = new HashMap<>(); map.put("imgUrl", user.getHeaderUrl()); map.put("nickname", user.getNickname()); map.put("phone", user.getPhoneNumber()); map.put("qq", user.getQqNumber()); map.put("id", user.getAccountId()); map.put("codePicture", null); map.put("promId", user.getPromoterId()); map.put("promProf", 0); return map; }  }
UserServiceImpl implements IUserService { @Override public Map<String, Object> queryPersonalInfo(Long accountId) { User user = userMapper.selectById(accountId); Map<String, Object> map = new HashMap<>(); map.put("imgUrl", user.getHeaderUrl()); map.put("nickname", user.getNickname()); map.put("phone", user.getPhoneNumber()); map.put("qq", user.getQqNumber()); map.put("id", user.getAccountId()); map.put("codePicture", null); map.put("promId", user.getPromoterId()); map.put("promProf", 0); return map; }  @Override boolean register(String phone, String password); @Override User queryUserByPhoneNum(String phone); @Override Map<String, Object> getUserInfo(Long accountId); @Override List<Map<String, Object>> selectHistoryLottery(Long accountId, Long lastCommId); Map<String, Object> selectExchange(Long commodityId); @Override List<Map<String, Object>> selectHistoryPay(Long accountId, Integer item); @Override boolean addPromoterId(Long accountId, Long promId); List<Map<String, Object>> selectToHistory(Long accountId); List<Map<String, Object>> selectToNew(Long accountId); List<String> luckUserList(Long accountId, Long commodityId); @Override User registerByOpenId(String openId, String password, String header_url, String nickname, String platform); @Override boolean checkOpenId(String token, String openId); @Override Map<String, Object> queryPersonalInfo(Long accountId); @Override List<String> selectGroupLuckCode(Long accountId, String lastCode); @Override User queryByOpenId(String openId, String platform); @Override User registerAndLoginThirdParty(ThirdPartyLoginToken token); int insertUser(User user, ThirdPartyLoginToken token); @Override int addPromoter(Long promId, Long accountId); @Override boolean addQQNumber(Long accountId, String qq); @Override List<Map<String, Object>> selectPurchaseRecords(Integer item, Long accountId, Long lastCommId); List<String> selectUserLuckCode(Long accountId, Long commId, String lastCode); @Override boolean updateUserNickname(Long accountId, String nickname); void giveRegisterRedPackets(Long accountId); }
UserServiceImpl implements IUserService { @Override public Map<String, Object> queryPersonalInfo(Long accountId) { User user = userMapper.selectById(accountId); Map<String, Object> map = new HashMap<>(); map.put("imgUrl", user.getHeaderUrl()); map.put("nickname", user.getNickname()); map.put("phone", user.getPhoneNumber()); map.put("qq", user.getQqNumber()); map.put("id", user.getAccountId()); map.put("codePicture", null); map.put("promId", user.getPromoterId()); map.put("promProf", 0); return map; }  @Override boolean register(String phone, String password); @Override User queryUserByPhoneNum(String phone); @Override Map<String, Object> getUserInfo(Long accountId); @Override List<Map<String, Object>> selectHistoryLottery(Long accountId, Long lastCommId); Map<String, Object> selectExchange(Long commodityId); @Override List<Map<String, Object>> selectHistoryPay(Long accountId, Integer item); @Override boolean addPromoterId(Long accountId, Long promId); List<Map<String, Object>> selectToHistory(Long accountId); List<Map<String, Object>> selectToNew(Long accountId); List<String> luckUserList(Long accountId, Long commodityId); @Override User registerByOpenId(String openId, String password, String header_url, String nickname, String platform); @Override boolean checkOpenId(String token, String openId); @Override Map<String, Object> queryPersonalInfo(Long accountId); @Override List<String> selectGroupLuckCode(Long accountId, String lastCode); @Override User queryByOpenId(String openId, String platform); @Override User registerAndLoginThirdParty(ThirdPartyLoginToken token); int insertUser(User user, ThirdPartyLoginToken token); @Override int addPromoter(Long promId, Long accountId); @Override boolean addQQNumber(Long accountId, String qq); @Override List<Map<String, Object>> selectPurchaseRecords(Integer item, Long accountId, Long lastCommId); List<String> selectUserLuckCode(Long accountId, Long commId, String lastCode); @Override boolean updateUserNickname(Long accountId, String nickname); void giveRegisterRedPackets(Long accountId);  }