mirror of
https://github.com/MewoLab/AquaDX.git
synced 2025-10-25 20:12:39 +00:00
Minor fix for type migration
This commit is contained in:
parent
bf22824aad
commit
66f6613cb7
@ -48,7 +48,7 @@ public class Lookup2Handler implements BaseHandler {
|
||||
long aimeId = -1;
|
||||
Optional<Card> card = cardRepository.findByLuid((String) requestMap.get("luid"));
|
||||
if (card.isPresent()) {
|
||||
aimeId = card.get().getExtId();
|
||||
aimeId = card.get().getExtId().longValue();
|
||||
}
|
||||
|
||||
Map<String, Object> resultMap = new HashMap<>();
|
||||
|
||||
@ -50,7 +50,7 @@ public class LookupHandler implements BaseHandler {
|
||||
long aimeId = -1;
|
||||
Optional<Card> card = cardRepository.findByLuid((String) requestMap.get("luid"));
|
||||
if (card.isPresent()) {
|
||||
aimeId = card.get().getExtId();
|
||||
aimeId = card.get().getExtId().longValue();
|
||||
}
|
||||
|
||||
Map<String, Object> resultMap = new HashMap<>();
|
||||
|
||||
@ -63,7 +63,7 @@ public class RegisterHandler implements BaseHandler {
|
||||
cardRepository.save(card);
|
||||
|
||||
resultMap.put("status", 1);
|
||||
resultMap.put("aimeId", card.getExtId());
|
||||
resultMap.put("aimeId", card.getExtId().longValue());
|
||||
} else {
|
||||
logger.warn("Duplicated Aime Card Register detected, access code: {}", requestMap.get("luid"));
|
||||
resultMap.put("status", 0);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user