public interface MemberKeyMakeUpMapper { HashMapselectByMemberKey(@Param("memberKey")String memberKey);}
private Long mackUpKeyGet(String memberKey) { HashMapmap = memberKeyMakeUpMapper.selectByMemberKey(memberKey); if (map == null || map.get("MEMBER_ID") == null || map.get("EXPIRE").toString() == null) { return null; } Long memberId = Long.valueOf(map.get("MEMBER_ID").toString()); Long expire = Long.valueOf(map.get("EXPIRE").toString()); if (memberId == null || memberId == 0 || expire == null || expire == 0) { return null; } if (System.currentTimeMillis() < expire) { return -1L; } return memberId; }