| Line 49... |
Line 49... |
| 49 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
49 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
| 50 |
import com.spice.profitmandi.common.model.ActivateItemModel;
|
50 |
import com.spice.profitmandi.common.model.ActivateItemModel;
|
| 51 |
import com.spice.profitmandi.common.model.ChartInvestmentModel;
|
51 |
import com.spice.profitmandi.common.model.ChartInvestmentModel;
|
| 52 |
import com.spice.profitmandi.common.model.ChartModel;
|
52 |
import com.spice.profitmandi.common.model.ChartModel;
|
| 53 |
import com.spice.profitmandi.common.model.CustomRetailer;
|
53 |
import com.spice.profitmandi.common.model.CustomRetailer;
|
| - |
|
54 |
import com.spice.profitmandi.common.model.Data;
|
| - |
|
55 |
import com.spice.profitmandi.common.model.DataInvestmentModel;
|
| - |
|
56 |
import com.spice.profitmandi.common.model.Legend;
|
| 54 |
import com.spice.profitmandi.common.model.Notification;
|
57 |
import com.spice.profitmandi.common.model.Notification;
|
| 55 |
import com.spice.profitmandi.common.model.OnlineDeliveredOrderSum;
|
58 |
import com.spice.profitmandi.common.model.OnlineDeliveredOrderSum;
|
| - |
|
59 |
import com.spice.profitmandi.common.model.OptionModel;
|
| - |
|
60 |
import com.spice.profitmandi.common.model.PieLables;
|
| 56 |
import com.spice.profitmandi.common.model.ProfitMandiConstants;
|
61 |
import com.spice.profitmandi.common.model.ProfitMandiConstants;
|
| - |
|
62 |
|
| 57 |
import com.spice.profitmandi.common.web.util.ResponseSender;
|
63 |
import com.spice.profitmandi.common.web.util.ResponseSender;
|
| 58 |
import com.spice.profitmandi.dao.entity.auth.AuthUser;
|
64 |
import com.spice.profitmandi.dao.entity.auth.AuthUser;
|
| 59 |
import com.spice.profitmandi.dao.entity.catalog.Item;
|
65 |
import com.spice.profitmandi.dao.entity.catalog.Item;
|
| 60 |
import com.spice.profitmandi.dao.entity.catalog.TagListing;
|
66 |
import com.spice.profitmandi.dao.entity.catalog.TagListing;
|
| 61 |
import com.spice.profitmandi.dao.entity.cs.Position;
|
67 |
import com.spice.profitmandi.dao.entity.cs.Position;
|
| 62 |
import com.spice.profitmandi.dao.entity.cs.TicketAssigned;
|
68 |
import com.spice.profitmandi.dao.entity.cs.TicketAssigned;
|
| 63 |
import com.spice.profitmandi.dao.entity.dtr.Document;
|
69 |
import com.spice.profitmandi.dao.entity.dtr.Document;
|
| 64 |
import com.spice.profitmandi.dao.entity.dtr.NotificationCampaign;
|
70 |
import com.spice.profitmandi.dao.entity.dtr.NotificationCampaign;
|
| 65 |
import com.spice.profitmandi.dao.entity.fofo.FofoStore;
|
71 |
import com.spice.profitmandi.dao.entity.fofo.FofoStore;
|
| 66 |
import com.spice.profitmandi.dao.entity.fofo.InventoryItem;
|
72 |
import com.spice.profitmandi.dao.entity.fofo.InventoryItem;
|
| - |
|
73 |
import com.spice.profitmandi.dao.entity.fofo.PartnerDailyInvestment;
|
| 67 |
import com.spice.profitmandi.dao.entity.fofo.PartnerType;
|
74 |
import com.spice.profitmandi.dao.entity.fofo.PartnerType;
|
| 68 |
import com.spice.profitmandi.dao.entity.inventory.ReporticoCacheTable;
|
75 |
import com.spice.profitmandi.dao.entity.inventory.ReporticoCacheTable;
|
| 69 |
import com.spice.profitmandi.dao.entity.transaction.Order;
|
76 |
import com.spice.profitmandi.dao.entity.transaction.Order;
|
| 70 |
import com.spice.profitmandi.dao.enumuration.transaction.OrderStatus;
|
77 |
import com.spice.profitmandi.dao.enumuration.transaction.OrderStatus;
|
| 71 |
import com.spice.profitmandi.dao.model.ActivationImeiUpdationModel;
|
78 |
import com.spice.profitmandi.dao.model.ActivationImeiUpdationModel;
|
| Line 770... |
Line 777... |
| 770 |
|
777 |
|
| 771 |
List<Integer> fofoIds = new ArrayList<>(authfofoIds);
|
778 |
List<Integer> fofoIds = new ArrayList<>(authfofoIds);
|
| 772 |
fofoIdAndallValues = fofoIdAndallValues.entrySet().stream().filter(x -> fofoIds.contains(x.getKey()))
|
779 |
fofoIdAndallValues = fofoIdAndallValues.entrySet().stream().filter(x -> fofoIds.contains(x.getKey()))
|
| 773 |
.collect(Collectors.toMap(x -> x.getKey(), x -> x.getValue()));
|
780 |
.collect(Collectors.toMap(x -> x.getKey(), x -> x.getValue()));
|
| 774 |
}
|
781 |
}
|
| - |
|
782 |
ChartInvestmentModel cm = adminUser.getAllStatePartnerType(fofoIdAndallValues);
|
| - |
|
783 |
model.addAttribute("chartPieMap", gson.toJson(cm));
|
| - |
|
784 |
|
| - |
|
785 |
LOGGER.info("adminUserChart" + gson.toJson(cm));
|
| - |
|
786 |
|
| 775 |
|
787 |
|
| 776 |
model.addAttribute("fofoIdAndallValues", fofoIdAndallValues);
|
788 |
model.addAttribute("fofoIdAndallValues", fofoIdAndallValues);
|
| 777 |
model.addAttribute("fofoIdAndPartnerMap", fofoIdAndPartnerMap);
|
789 |
model.addAttribute("fofoIdAndPartnerMap", fofoIdAndPartnerMap);
|
| 778 |
|
790 |
|
| 779 |
return "auth_user_partner_detail";
|
791 |
return "auth_user_partner_detail";
|