| Line 1828... |
Line 1828... |
| 1828 |
|
1828 |
|
| 1829 |
@Autowired
|
1829 |
@Autowired
|
| 1830 |
InsurancePolicyRepository insurancePolicyRepository;
|
1830 |
InsurancePolicyRepository insurancePolicyRepository;
|
| 1831 |
|
1831 |
|
| 1832 |
public void addMissingWalletDebitsForInsurance() throws Exception {
|
1832 |
public void addMissingWalletDebitsForInsurance() throws Exception {
|
| 1833 |
List<InsurancePolicy> insurancePolicies = insurancePolicyRepository.selectAllByProviderId(5, Optional.of(null));
|
1833 |
List<InsurancePolicy> insurancePolicies = insurancePolicyRepository.selectAllByProviderId(5, Optional.empty());
|
| 1834 |
for (InsurancePolicy insurancePolicy : insurancePolicies) {
|
1834 |
for (InsurancePolicy insurancePolicy : insurancePolicies) {
|
| 1835 |
FofoOrder fofoOrder = fofoOrderRepository.selectByInvoiceNumber(insurancePolicy.getInvoiceNumber());
|
1835 |
FofoOrder fofoOrder = fofoOrderRepository.selectByInvoiceNumber(insurancePolicy.getInvoiceNumber());
|
| 1836 |
List<UserWalletHistory> userWalletHistories = userWalletHistoryRepository.selectAllByreferenceIdandreferenceType(insurancePolicy.getId(), WalletReferenceType.DAMAGE_PROTECTION);
|
1836 |
List<UserWalletHistory> userWalletHistories = userWalletHistoryRepository.selectAllByreferenceIdandreferenceType(insurancePolicy.getId(), WalletReferenceType.DAMAGE_PROTECTION);
|
| 1837 |
if (userWalletHistories.size() == 0) {
|
1837 |
if (userWalletHistories.size() == 0) {
|
| 1838 |
|
1838 |
|