| Line 62... |
Line 62... |
| 62 |
import java.awt.image.BufferedImage;
|
62 |
import java.awt.image.BufferedImage;
|
| 63 |
import java.io.ByteArrayInputStream;
|
63 |
import java.io.ByteArrayInputStream;
|
| 64 |
import java.io.File;
|
64 |
import java.io.File;
|
| 65 |
import java.io.FileNotFoundException;
|
65 |
import java.io.FileNotFoundException;
|
| 66 |
import java.io.InputStream;
|
66 |
import java.io.InputStream;
|
| 67 |
import java.time.*;
|
67 |
import java.time.Instant;
|
| - |
|
68 |
import java.time.LocalDate;
|
| - |
|
69 |
import java.time.LocalDateTime;
|
| - |
|
70 |
import java.time.YearMonth;
|
| 68 |
import java.util.List;
|
71 |
import java.util.List;
|
| 69 |
import java.util.*;
|
72 |
import java.util.*;
|
| 70 |
import java.util.stream.Collectors;
|
73 |
import java.util.stream.Collectors;
|
| 71 |
|
74 |
|
| 72 |
@Controller
|
75 |
@Controller
|
| Line 125... |
Line 128... |
| 125 |
public String getCreateOffer(HttpServletRequest request, Model model) throws ProfitMandiBusinessException {
|
128 |
public String getCreateOffer(HttpServletRequest request, Model model) throws ProfitMandiBusinessException {
|
| 126 |
LoginDetails loginDetails = cookiesProcessor.getCookiesObject(request);
|
129 |
LoginDetails loginDetails = cookiesProcessor.getCookiesObject(request);
|
| 127 |
List<Integer> fofoIds = fofoStoreRepository.selectActiveStores().stream().map(x -> x.getId())
|
130 |
List<Integer> fofoIds = fofoStoreRepository.selectActiveStores().stream().map(x -> x.getId())
|
| 128 |
.collect(Collectors.toList());
|
131 |
.collect(Collectors.toList());
|
| 129 |
|
132 |
|
| 130 |
Set<String> brands = brandsService.getBrandsToDisplay(3).stream().map(x->x.getName()).collect(Collectors.toSet());
|
133 |
Set<String> brands = brandsService.getBrandsToDisplay(3).stream().map(x -> x.getName()).collect(Collectors.toSet());
|
| 131 |
brands.addAll(itemRepository.selectAllBrands(ProfitMandiConstants.LED_CATEGORY_ID));
|
134 |
brands.addAll(itemRepository.selectAllBrands(ProfitMandiConstants.LED_CATEGORY_ID));
|
| 132 |
brands.addAll(itemRepository.selectAllBrands(ProfitMandiConstants.SMART_WATCH_CATEGORY_ID));
|
135 |
brands.addAll(itemRepository.selectAllBrands(ProfitMandiConstants.SMART_WATCH_CATEGORY_ID));
|
| 133 |
//Lets allow demo
|
136 |
//Lets allow demo
|
| 134 |
brands.add("Live Demo");
|
137 |
brands.add("Live Demo");
|
| 135 |
|
138 |
|