| Line 679... |
Line 679... |
| 679 |
history.setReference(reference);
|
679 |
history.setReference(reference);
|
| 680 |
history.setReferenceType(referenceType);
|
680 |
history.setReferenceType(referenceType);
|
| 681 |
history.setTimestamp(LocalDateTime.now());
|
681 |
history.setTimestamp(LocalDateTime.now());
|
| 682 |
|
682 |
|
| 683 |
}
|
683 |
}
|
| 684 |
userWalletHistoryRepository.persit(history);
|
684 |
userWalletHistoryRepository.persist(history);
|
| 685 |
model.addAttribute("response", mvcResponseSender.createResponseString(history.getReference()));
|
685 |
model.addAttribute("response", mvcResponseSender.createResponseString(history.getReference()));
|
| 686 |
} else if(WalletReferenceType.INCENTIVES==referenceType || WalletReferenceType.OTHERS==referenceType){
|
686 |
} else if(WalletReferenceType.INCENTIVES==referenceType || WalletReferenceType.OTHERS==referenceType){
|
| 687 |
LOGGER.error("referenceType: "+referenceType);
|
687 |
LOGGER.error("referenceType: "+referenceType);
|
| 688 |
ManualPaymentType paymentType = manualPaymentRequestRepository.selectByReferenceType(referenceType);
|
688 |
ManualPaymentType paymentType = manualPaymentRequestRepository.selectByReferenceType(referenceType);
|
| 689 |
|
689 |
|
| Line 718... |
Line 718... |
| 718 |
history.setReference(paymentType.getCounter());
|
718 |
history.setReference(paymentType.getCounter());
|
| 719 |
history.setReferenceType(referenceType);
|
719 |
history.setReferenceType(referenceType);
|
| 720 |
history.setTimestamp(LocalDateTime.now());
|
720 |
history.setTimestamp(LocalDateTime.now());
|
| 721 |
|
721 |
|
| 722 |
}
|
722 |
}
|
| 723 |
userWalletHistoryRepository.persit(history);
|
723 |
userWalletHistoryRepository.persist(history);
|
| 724 |
model.addAttribute("response", mvcResponseSender.createResponseString(history.getReference()));
|
724 |
model.addAttribute("response", mvcResponseSender.createResponseString(history.getReference()));
|
| 725 |
}
|
725 |
}
|
| 726 |
else {
|
726 |
else {
|
| 727 |
model.addAttribute("response", mvcResponseSender.createResponseString(0));
|
727 |
model.addAttribute("response", mvcResponseSender.createResponseString(0));
|
| 728 |
}
|
728 |
}
|