| Line 39... |
Line 39... |
| 39 |
import org.apache.poi.ss.usermodel.Cell;
|
39 |
import org.apache.poi.ss.usermodel.Cell;
|
| 40 |
import org.apache.poi.ss.usermodel.CellStyle;
|
40 |
import org.apache.poi.ss.usermodel.CellStyle;
|
| 41 |
import org.apache.poi.ss.usermodel.CreationHelper;
|
41 |
import org.apache.poi.ss.usermodel.CreationHelper;
|
| 42 |
import org.apache.poi.ss.usermodel.Sheet;
|
42 |
import org.apache.poi.ss.usermodel.Sheet;
|
| 43 |
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
|
43 |
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
|
| 44 |
import org.json.JSONObject;
|
- |
|
| 45 |
import org.springframework.beans.factory.annotation.Autowired;
|
44 |
import org.springframework.beans.factory.annotation.Autowired;
|
| 46 |
import org.springframework.core.io.InputStreamResource;
|
45 |
import org.springframework.core.io.InputStreamResource;
|
| 47 |
import org.springframework.http.HttpHeaders;
|
46 |
import org.springframework.http.HttpHeaders;
|
| 48 |
import org.springframework.http.HttpStatus;
|
47 |
import org.springframework.http.HttpStatus;
|
| 49 |
import org.springframework.http.ResponseEntity;
|
48 |
import org.springframework.http.ResponseEntity;
|
| Line 911... |
Line 910... |
| 911 |
return bos;
|
910 |
return bos;
|
| 912 |
}
|
911 |
}
|
| 913 |
|
912 |
|
| 914 |
@RequestMapping(value = "/manualPayment", method = RequestMethod.GET)
|
913 |
@RequestMapping(value = "/manualPayment", method = RequestMethod.GET)
|
| 915 |
public String ManualPayment(HttpServletRequest request, Model model) throws Exception {
|
914 |
public String ManualPayment(HttpServletRequest request, Model model) throws Exception {
|
| 916 |
|
- |
|
| 917 |
List<Integer> fofoIds = fofoStoreRepository.selectAll().stream().map(x -> x.getId()).collect(Collectors.toList());
|
- |
|
| 918 |
Map<Integer, CustomRetailer> customRetailerMap = retailerService.getAllFofoRetailers();
|
- |
|
| 919 |
|
- |
|
| 920 |
Map<Integer, CustomRetailer> customRetailersMap = fofoIds.stream().map(x -> customRetailerMap.get(x)).filter(x -> x != null).collect(Collectors.toList()).stream().collect(Collectors.toMap(x -> x.getPartnerId(), x -> x));
|
- |
|
| 921 |
String customRetailers = JSONObject.valueToString(customRetailersMap.values());
|
- |
|
| 922 |
model.addAttribute("customRetailers", customRetailers);
|
- |
|
| 923 |
|
- |
|
| 924 |
model.addAttribute("referenceTypes", WalletReferenceType.referenceType);
|
915 |
model.addAttribute("referenceTypes", WalletReferenceType.referenceType);
|
| 925 |
model.addAttribute("transactionTypes", TransactionType.values());
|
916 |
model.addAttribute("transactionTypes", TransactionType.values());
|
| 926 |
return "wallet-edit";
|
917 |
return "wallet-edit";
|
| 927 |
|
918 |
|
| 928 |
}
|
919 |
}
|