| Line 7... |
Line 7... |
| 7 |
import com.spice.profitmandi.common.model.UnsettledPaymentModel;
|
7 |
import com.spice.profitmandi.common.model.UnsettledPaymentModel;
|
| 8 |
import com.spice.profitmandi.common.util.*;
|
8 |
import com.spice.profitmandi.common.util.*;
|
| 9 |
import com.spice.profitmandi.dao.entity.dtr.CreditAccount;
|
9 |
import com.spice.profitmandi.dao.entity.dtr.CreditAccount;
|
| 10 |
import com.spice.profitmandi.dao.entity.fofo.FofoStore;
|
10 |
import com.spice.profitmandi.dao.entity.fofo.FofoStore;
|
| 11 |
import com.spice.profitmandi.dao.entity.transaction.*;
|
11 |
import com.spice.profitmandi.dao.entity.transaction.*;
|
| - |
|
12 |
import com.spice.profitmandi.dao.enumuration.fofo.Gateway;
|
| 12 |
import com.spice.profitmandi.dao.enumuration.transaction.AddWalletRequestStatus;
|
13 |
import com.spice.profitmandi.dao.enumuration.transaction.AddWalletRequestStatus;
|
| 13 |
import com.spice.profitmandi.dao.enumuration.transaction.TransactionType;
|
14 |
import com.spice.profitmandi.dao.enumuration.transaction.TransactionType;
|
| 14 |
import com.spice.profitmandi.dao.repository.catalog.AddWalletRequestRepository;
|
15 |
import com.spice.profitmandi.dao.repository.catalog.AddWalletRequestRepository;
|
| 15 |
import com.spice.profitmandi.dao.repository.catalog.ManualPaymentRequestRepository;
|
16 |
import com.spice.profitmandi.dao.repository.catalog.ManualPaymentRequestRepository;
|
| 16 |
import com.spice.profitmandi.dao.repository.catalog.UnsettledPaymentsRepository;
|
17 |
import com.spice.profitmandi.dao.repository.catalog.UnsettledPaymentsRepository;
|
| Line 964... |
Line 965... |
| 964 |
return "response";
|
965 |
return "response";
|
| 965 |
}
|
966 |
}
|
| 966 |
|
967 |
|
| 967 |
@RequestMapping(value = "/getCreditDetail", method = RequestMethod.GET)
|
968 |
@RequestMapping(value = "/getCreditDetail", method = RequestMethod.GET)
|
| 968 |
public String getCreditDetail(HttpServletRequest request, Model model) throws Exception {
|
969 |
public String getCreditDetail(HttpServletRequest request, Model model) throws Exception {
|
| 969 |
List<CreditAccount> creditAccounts = creditAccountRepository.selectAll();
|
970 |
List<CreditAccount> creditAccounts = creditAccountRepository.selectAll().stream().filter(x->x.getGateway().equals(Gateway.SDDIRECT)).collect(Collectors.toList());
|
| 970 |
Map<Integer, CustomRetailer> customRetailers = retailerService.getAllFofoRetailers();
|
971 |
Map<Integer, CustomRetailer> customRetailers = retailerService.getAllFofoRetailers();
|
| 971 |
|
972 |
|
| 972 |
Map<Integer, FofoStore> fofoStoreMap = fofoStoreRepository.selectByRetailerIds(new ArrayList<>(customRetailers.keySet())).stream().collect(Collectors.toMap(x -> x.getId(), x -> x));
|
973 |
Map<Integer, FofoStore> fofoStoreMap = fofoStoreRepository.selectByRetailerIds(new ArrayList<>(customRetailers.keySet())).stream().collect(Collectors.toMap(x -> x.getId(), x -> x));
|
| 973 |
|
974 |
|
| 974 |
model.addAttribute("creditAccounts", creditAccounts);
|
975 |
model.addAttribute("creditAccounts", creditAccounts);
|