| Line 40... |
Line 40... |
| 40 |
import com.spice.profitmandi.dao.entity.dtr.User;
|
40 |
import com.spice.profitmandi.dao.entity.dtr.User;
|
| 41 |
import com.spice.profitmandi.dao.entity.dtr.UserAccount;
|
41 |
import com.spice.profitmandi.dao.entity.dtr.UserAccount;
|
| 42 |
import com.spice.profitmandi.dao.entity.fofo.FofoStore;
|
42 |
import com.spice.profitmandi.dao.entity.fofo.FofoStore;
|
| 43 |
import com.spice.profitmandi.dao.entity.fofo.PartnerDailyInvestment;
|
43 |
import com.spice.profitmandi.dao.entity.fofo.PartnerDailyInvestment;
|
| 44 |
import com.spice.profitmandi.dao.entity.fofo.PartnerOnBoardingPanel;
|
44 |
import com.spice.profitmandi.dao.entity.fofo.PartnerOnBoardingPanel;
|
| - |
|
45 |
import com.spice.profitmandi.dao.entity.transaction.Order;
|
| 45 |
import com.spice.profitmandi.dao.entity.user.FranchiseeActivity;
|
46 |
import com.spice.profitmandi.dao.entity.user.FranchiseeActivity;
|
| 46 |
import com.spice.profitmandi.dao.entity.user.FranchiseeVisit;
|
47 |
import com.spice.profitmandi.dao.entity.user.FranchiseeVisit;
|
| 47 |
import com.spice.profitmandi.dao.entity.user.Lead;
|
48 |
import com.spice.profitmandi.dao.entity.user.Lead;
|
| 48 |
import com.spice.profitmandi.dao.entity.user.LeadActivity;
|
49 |
import com.spice.profitmandi.dao.entity.user.LeadActivity;
|
| 49 |
import com.spice.profitmandi.dao.enumuration.dtr.FranchiseeActivityStatus;
|
50 |
import com.spice.profitmandi.dao.enumuration.dtr.FranchiseeActivityStatus;
|
| Line 626... |
Line 627... |
| 626 |
.collect(Collectors.toMap(x -> x.getFofoId(), x -> x));
|
627 |
.collect(Collectors.toMap(x -> x.getFofoId(), x -> x));
|
| 627 |
|
628 |
|
| 628 |
LOGGER.info("collectionPlans {}", collectionPlans);
|
629 |
LOGGER.info("collectionPlans {}", collectionPlans);
|
| 629 |
|
630 |
|
| 630 |
Map<Integer, List<PartnerSecondaryPlanModel>> partnerSecondayPlans = orderRepository
|
631 |
Map<Integer, List<PartnerSecondaryPlanModel>> partnerSecondayPlans = orderRepository
|
| 631 |
.selectPartnerSecondaryGroupByBrand(fofoIdList, startDate, endDate).stream()
|
632 |
.selectPartnerSecondaryGroupByBrand(fofoIdList, startDate.toLocalDate()).stream()
|
| 632 |
.collect(Collectors.groupingBy(x -> x.getFofoId()));
|
633 |
.collect(Collectors.groupingBy(x -> x.getFofoId()));
|
| 633 |
|
634 |
|
| 634 |
LOGGER.info("partnerSecondayPlans {}", partnerSecondayPlans);
|
635 |
LOGGER.info("partnerSecondayPlans {}", partnerSecondayPlans);
|
| 635 |
for (Entry<Integer, CustomRetailer> customRetailerEntry : customRetailers.entrySet()) {
|
636 |
for (Entry<Integer, CustomRetailer> customRetailerEntry : customRetailers.entrySet()) {
|
| 636 |
int fofoId = customRetailerEntry.getKey();
|
637 |
int fofoId = customRetailerEntry.getKey();
|