| Line 38... |
Line 38... |
| 38 |
import com.spice.profitmandi.dao.enumuration.dtr.PaymentOptionReferenceType;
|
38 |
import com.spice.profitmandi.dao.enumuration.dtr.PaymentOptionReferenceType;
|
| 39 |
import com.spice.profitmandi.dao.enumuration.fofo.Gateway;
|
39 |
import com.spice.profitmandi.dao.enumuration.fofo.Gateway;
|
| 40 |
import com.spice.profitmandi.dao.enumuration.fofo.ScanType;
|
40 |
import com.spice.profitmandi.dao.enumuration.fofo.ScanType;
|
| 41 |
import com.spice.profitmandi.dao.enumuration.transaction.PriceDropImeiStatus;
|
41 |
import com.spice.profitmandi.dao.enumuration.transaction.PriceDropImeiStatus;
|
| 42 |
import com.spice.profitmandi.dao.model.ContentPojo;
|
42 |
import com.spice.profitmandi.dao.model.ContentPojo;
|
| - |
|
43 |
import com.spice.profitmandi.dao.model.CreateOfferRequest;
|
| 43 |
import com.spice.profitmandi.dao.model.MediaPojo;
|
44 |
import com.spice.profitmandi.dao.model.MediaPojo;
|
| 44 |
import com.spice.profitmandi.dao.model.TargetSlab;
|
45 |
import com.spice.profitmandi.dao.model.TargetSlab;
|
| 45 |
import com.spice.profitmandi.dao.repository.GenericRepository;
|
46 |
import com.spice.profitmandi.dao.repository.GenericRepository;
|
| 46 |
import com.spice.profitmandi.dao.repository.catalog.*;
|
47 |
import com.spice.profitmandi.dao.repository.catalog.*;
|
| 47 |
import com.spice.profitmandi.dao.repository.cs.CsService;
|
48 |
import com.spice.profitmandi.dao.repository.cs.CsService;
|
| Line 100... |
Line 101... |
| 100 |
import java.io.File;
|
101 |
import java.io.File;
|
| 101 |
import java.io.FileInputStream;
|
102 |
import java.io.FileInputStream;
|
| 102 |
import java.io.IOException;
|
103 |
import java.io.IOException;
|
| 103 |
import java.time.LocalDate;
|
104 |
import java.time.LocalDate;
|
| 104 |
import java.time.LocalDateTime;
|
105 |
import java.time.LocalDateTime;
|
| - |
|
106 |
import java.time.LocalTime;
|
| 105 |
import java.time.Month;
|
107 |
import java.time.Month;
|
| 106 |
import java.time.temporal.ChronoUnit;
|
108 |
import java.time.temporal.ChronoUnit;
|
| 107 |
import java.util.*;
|
109 |
import java.util.*;
|
| 108 |
import java.util.concurrent.TimeUnit;
|
110 |
import java.util.concurrent.TimeUnit;
|
| 109 |
import java.util.stream.Collectors;
|
111 |
import java.util.stream.Collectors;
|
| Line 897... |
Line 899... |
| 897 |
|
899 |
|
| 898 |
@Autowired
|
900 |
@Autowired
|
| 899 |
ItemCriteriaRepository itemCriteriaRepository;
|
901 |
ItemCriteriaRepository itemCriteriaRepository;
|
| 900 |
|
902 |
|
| 901 |
public void createOfferCriteria() throws Exception {
|
903 |
public void createOfferCriteria() throws Exception {
|
| - |
|
904 |
Offer offer = offerRepository.selectById(1099);
|
| - |
|
905 |
CreateOfferRequest createOfferRequest = offerService.getCreateOfferRequest(offer);
|
| - |
|
906 |
createOfferRequest.setStartDate(LocalDate.of(2022, 7, 5).atStartOfDay());
|
| - |
|
907 |
createOfferRequest.setEndDate(LocalDate.of(2022, 7, 31).atTime(LocalTime.MAX));
|
| - |
|
908 |
createOfferRequest.setCreatedOn(LocalDateTime.now());
|
| - |
|
909 |
offerService.addOfferService(createOfferRequest);
|
| - |
|
910 |
}
|
| - |
|
911 |
|
| - |
|
912 |
public void createOfferCriteria1() throws Exception {
|
| 902 |
Map<Integer, List<Integer>> map = new HashMap<>();
|
913 |
Map<Integer, List<Integer>> map = new HashMap<>();
|
| 903 |
map.put(31960, Arrays.asList(57, 69));
|
914 |
map.put(31960, Arrays.asList(57, 69));
|
| 904 |
map.put(32844, Arrays.asList(57, 69));
|
915 |
map.put(32844, Arrays.asList(57, 69));
|
| 905 |
map.put(31964, Arrays.asList(65, 78));
|
916 |
map.put(31964, Arrays.asList(65, 78));
|
| 906 |
map.put(33493, Arrays.asList(70, 84));
|
917 |
map.put(33493, Arrays.asList(70, 84));
|