| Line 6... |
Line 6... |
| 6 |
import java.time.Duration;
|
6 |
import java.time.Duration;
|
| 7 |
import java.time.LocalDate;
|
7 |
import java.time.LocalDate;
|
| 8 |
import java.time.LocalDateTime;
|
8 |
import java.time.LocalDateTime;
|
| 9 |
import java.time.LocalTime;
|
9 |
import java.time.LocalTime;
|
| 10 |
import java.time.Month;
|
10 |
import java.time.Month;
|
| 11 |
import java.time.Period;
|
- |
|
| 12 |
import java.time.format.DateTimeFormatter;
|
11 |
import java.time.format.DateTimeFormatter;
|
| 13 |
import java.time.temporal.ChronoUnit;
|
12 |
import java.time.temporal.ChronoUnit;
|
| 14 |
import java.util.ArrayList;
|
13 |
import java.util.ArrayList;
|
| 15 |
import java.util.Arrays;
|
14 |
import java.util.Arrays;
|
| 16 |
import java.util.Base64;
|
15 |
import java.util.Base64;
|
| Line 93... |
Line 92... |
| 93 |
import com.spice.profitmandi.dao.entity.fofo.FofoOrderItem;
|
92 |
import com.spice.profitmandi.dao.entity.fofo.FofoOrderItem;
|
| 94 |
import com.spice.profitmandi.dao.entity.fofo.FofoStore;
|
93 |
import com.spice.profitmandi.dao.entity.fofo.FofoStore;
|
| 95 |
import com.spice.profitmandi.dao.entity.fofo.InventoryItem;
|
94 |
import com.spice.profitmandi.dao.entity.fofo.InventoryItem;
|
| 96 |
import com.spice.profitmandi.dao.entity.fofo.PartnerDailyInvestment;
|
95 |
import com.spice.profitmandi.dao.entity.fofo.PartnerDailyInvestment;
|
| 97 |
import com.spice.profitmandi.dao.entity.fofo.PartnerProblem;
|
96 |
import com.spice.profitmandi.dao.entity.fofo.PartnerProblem;
|
| - |
|
97 |
import com.spice.profitmandi.dao.entity.fofo.PartnerType;
|
| 98 |
import com.spice.profitmandi.dao.entity.fofo.PendingOrder;
|
98 |
import com.spice.profitmandi.dao.entity.fofo.PendingOrder;
|
| 99 |
import com.spice.profitmandi.dao.entity.fofo.PendingOrderItem;
|
99 |
import com.spice.profitmandi.dao.entity.fofo.PendingOrderItem;
|
| 100 |
import com.spice.profitmandi.dao.entity.fofo.Purchase;
|
100 |
import com.spice.profitmandi.dao.entity.fofo.Purchase;
|
| 101 |
import com.spice.profitmandi.dao.entity.fofo.RazorPay;
|
101 |
import com.spice.profitmandi.dao.entity.fofo.RazorPay;
|
| 102 |
import com.spice.profitmandi.dao.entity.fofo.ScanRecord;
|
102 |
import com.spice.profitmandi.dao.entity.fofo.ScanRecord;
|
| Line 779... |
Line 779... |
| 779 |
rt.setCashbackReference(referenceId);
|
779 |
rt.setCashbackReference(referenceId);
|
| 780 |
rechargeTransactionRepository.persist(rt);
|
780 |
rechargeTransactionRepository.persist(rt);
|
| 781 |
}
|
781 |
}
|
| 782 |
LOGGER.info("Cashbacks for Recharge processed Successfully");
|
782 |
LOGGER.info("Cashbacks for Recharge processed Successfully");
|
| 783 |
}
|
783 |
}
|
| - |
|
784 |
|
| - |
|
785 |
public void rollOutUpgardedMargins() {
|
| - |
|
786 |
List<FofoStore> stores = fofoStoreRepository.selectActiveStores();
|
| - |
|
787 |
for(FofoStore store : stores) {
|
| - |
|
788 |
int fofoId = store.getId();
|
| - |
|
789 |
PartnerType yesterdayPartnerType = partnerTypeChangeService.getTypeOnDate(fofoId, LocalDate.now().minusDays(1));
|
| - |
|
790 |
PartnerType todayPartnerType = partnerTypeChangeService.getTypeOnDate(fofoId, LocalDate.now());
|
| - |
|
791 |
if(!yesterdayPartnerType.equals(todayPartnerType)) {
|
| - |
|
792 |
LOGGER.info("Partner Type has been changed for code {}", store.getCode());
|
| - |
|
793 |
}
|
| - |
|
794 |
}
|
| - |
|
795 |
}
|
| 784 |
|
796 |
|
| 785 |
private class SaleRoles {
|
797 |
private class SaleRoles {
|
| 786 |
|
798 |
|
| 787 |
private List<String> l1;
|
799 |
private List<String> l1;
|
| 788 |
private List<String> l2;
|
800 |
private List<String> l2;
|