| Line 130... |
Line 130... |
| 130 |
import java.time.temporal.ChronoField;
|
130 |
import java.time.temporal.ChronoField;
|
| 131 |
import java.time.temporal.ChronoUnit;
|
131 |
import java.time.temporal.ChronoUnit;
|
| 132 |
import java.util.*;
|
132 |
import java.util.*;
|
| 133 |
import java.util.Map.Entry;
|
133 |
import java.util.Map.Entry;
|
| 134 |
import java.util.stream.Collectors;
|
134 |
import java.util.stream.Collectors;
|
| - |
|
135 |
import java.util.stream.IntStream;
|
| 135 |
import java.util.stream.Stream;
|
136 |
import java.util.stream.Stream;
|
| 136 |
|
137 |
|
| 137 |
import static java.util.stream.Collectors.groupingBy;
|
138 |
import static java.util.stream.Collectors.groupingBy;
|
| 138 |
import static java.util.stream.Collectors.mapping;
|
139 |
import static java.util.stream.Collectors.mapping;
|
| 139 |
|
140 |
|
| Line 1020... |
Line 1021... |
| 1020 |
TransactionRelatedTasks transactionRelatedTasks;
|
1021 |
TransactionRelatedTasks transactionRelatedTasks;
|
| 1021 |
|
1022 |
|
| 1022 |
@Autowired
|
1023 |
@Autowired
|
| 1023 |
PsiSmartService psiSmartService;
|
1024 |
PsiSmartService psiSmartService;
|
| 1024 |
|
1025 |
|
| - |
|
1026 |
private void migrateValentine() throws ProfitMandiBusinessException {
|
| - |
|
1027 |
List<FofoOrder> fofoOrders = fofoOrderRepository.selectBetweenSaleDate(LocalDate.now().atStartOfDay(), LocalDateTime.now());
|
| - |
|
1028 |
for (FofoOrder fofoOrder : fofoOrders) {
|
| - |
|
1029 |
orderService.processScratchOffer(fofoOrder);
|
| - |
|
1030 |
}
|
| - |
|
1031 |
}
|
| 1025 |
public void test() throws Exception {
|
1032 |
public void test() throws Exception {
|
| 1026 |
System.out.println(psiSmartService.getRegistrationEndPoint("9990381569"));
|
1033 |
//System.out.println(psiSmartService.getRegistrationEndPoint("9990381569"));
|
| - |
|
1034 |
migrateValentine();
|
| 1027 |
//Map<Integer, List<Offer>> offerMap = offerRepository.selectAllPublishedMapByPartner(YearMonth.now());
|
1035 |
//Map<Integer, List<Offer>> offerMap = offerRepository.selectAllPublishedMapByPartner(YearMonth.now());
|
| 1028 |
//LOGGER.info("Offers - {}", offerMap.entrySet().stream().filter(x->x.getKey()==168118414).flatMap(x->x.getValue().stream().map(y->y.getId())).collect(Collectors.toList()));
|
1036 |
//LOGGER.info("Offers - {}", offerMap.entrySet().stream().filter(x->x.getKey()==168118414).flatMap(x->x.getValue().stream().map(y->y.getId())).collect(Collectors.toList()));
|
| 1029 |
//bluedartAuthService.getAuthToken();
|
1037 |
//bluedartAuthService.getAuthToken();
|
| 1030 |
//bluedartService.getAirwayBillNo()
|
1038 |
//bluedartService.getAirwayBillNo()
|
| 1031 |
/*transactionRelatedTasks.reverseRTO(Arrays.asList(
|
1039 |
/*transactionRelatedTasks.reverseRTO(Arrays.asList(
|