| Line 70... |
Line 70... |
| 70 |
import com.spice.profitmandi.dao.entity.fofo.FofoStore;
|
70 |
import com.spice.profitmandi.dao.entity.fofo.FofoStore;
|
| 71 |
import com.spice.profitmandi.dao.entity.fofo.PartnerDailyInvestment;
|
71 |
import com.spice.profitmandi.dao.entity.fofo.PartnerDailyInvestment;
|
| 72 |
import com.spice.profitmandi.dao.entity.fofo.PartnerTargetDetails;
|
72 |
import com.spice.profitmandi.dao.entity.fofo.PartnerTargetDetails;
|
| 73 |
import com.spice.profitmandi.dao.entity.fofo.PartnerType;
|
73 |
import com.spice.profitmandi.dao.entity.fofo.PartnerType;
|
| 74 |
import com.spice.profitmandi.dao.entity.inventory.ReporticoCacheTable;
|
74 |
import com.spice.profitmandi.dao.entity.inventory.ReporticoCacheTable;
|
| - |
|
75 |
import com.spice.profitmandi.dao.entity.transaction.LineItem;
|
| - |
|
76 |
import com.spice.profitmandi.dao.entity.transaction.Order;
|
| 75 |
import com.spice.profitmandi.dao.entity.user.Lead;
|
77 |
import com.spice.profitmandi.dao.entity.user.Lead;
|
| 76 |
import com.spice.profitmandi.dao.enumuration.catalog.ItemCriteriaType;
|
78 |
import com.spice.profitmandi.dao.enumuration.catalog.ItemCriteriaType;
|
| 77 |
import com.spice.profitmandi.dao.enumuration.cs.EscalationType;
|
79 |
import com.spice.profitmandi.dao.enumuration.cs.EscalationType;
|
| 78 |
import com.spice.profitmandi.dao.enumuration.dtr.LeadStatus;
|
80 |
import com.spice.profitmandi.dao.enumuration.dtr.LeadStatus;
|
| 79 |
import com.spice.profitmandi.dao.model.CreateOfferRequest;
|
81 |
import com.spice.profitmandi.dao.model.CreateOfferRequest;
|
| Line 122... |
Line 124... |
| 122 |
import com.spice.profitmandi.dao.repository.inventory.SaholicInventorySnapshotRepository;
|
124 |
import com.spice.profitmandi.dao.repository.inventory.SaholicInventorySnapshotRepository;
|
| 123 |
import com.spice.profitmandi.service.PartnerInvestmentService;
|
125 |
import com.spice.profitmandi.service.PartnerInvestmentService;
|
| 124 |
import com.spice.profitmandi.service.PartnerStatsService;
|
126 |
import com.spice.profitmandi.service.PartnerStatsService;
|
| 125 |
import com.spice.profitmandi.service.authentication.RoleManager;
|
127 |
import com.spice.profitmandi.service.authentication.RoleManager;
|
| 126 |
import com.spice.profitmandi.service.inventory.InventoryService;
|
128 |
import com.spice.profitmandi.service.inventory.InventoryService;
|
| - |
|
129 |
import com.spice.profitmandi.service.transaction.TransactionService;
|
| 127 |
import com.spice.profitmandi.service.user.RetailerService;
|
130 |
import com.spice.profitmandi.service.user.RetailerService;
|
| 128 |
import com.spice.profitmandi.web.model.LoginDetails;
|
131 |
import com.spice.profitmandi.web.model.LoginDetails;
|
| 129 |
import com.spice.profitmandi.web.util.CookiesProcessor;
|
132 |
import com.spice.profitmandi.web.util.CookiesProcessor;
|
| 130 |
import com.spice.profitmandi.web.util.MVCResponseSender;
|
133 |
import com.spice.profitmandi.web.util.MVCResponseSender;
|
| 131 |
|
134 |
|
| Line 266... |
Line 269... |
| 266 |
private MVCResponseSender mvcResponseSender;
|
269 |
private MVCResponseSender mvcResponseSender;
|
| 267 |
|
270 |
|
| 268 |
@Autowired
|
271 |
@Autowired
|
| 269 |
private ReporticoCacheTableRepository reporticoCacheTableRepository;
|
272 |
private ReporticoCacheTableRepository reporticoCacheTableRepository;
|
| 270 |
|
273 |
|
| - |
|
274 |
@Autowired
|
| - |
|
275 |
private TransactionService transactionService;
|
| - |
|
276 |
|
| 271 |
private static final Logger LOGGER = LogManager.getLogger(DashboardController.class);
|
277 |
private static final Logger LOGGER = LogManager.getLogger(DashboardController.class);
|
| 272 |
|
278 |
|
| 273 |
@RequestMapping(value = "/12dashboard34", method = RequestMethod.GET)
|
279 |
@RequestMapping(value = "/12dashboard34", method = RequestMethod.GET)
|
| 274 |
public String dashboard1(HttpServletRequest request, Model model, @RequestParam int fofoId) throws Exception {
|
280 |
public String dashboard1(HttpServletRequest request, Model model, @RequestParam int fofoId) throws Exception {
|
| 275 |
boolean isAdmin = false;
|
281 |
boolean isAdmin = false;
|
| Line 1428... |
Line 1434... |
| 1428 |
@RequestParam(name = ProfitMandiConstants.FOFO_ID) int fofoId, Model model)
|
1434 |
@RequestParam(name = ProfitMandiConstants.FOFO_ID) int fofoId, Model model)
|
| 1429 |
throws ProfitMandiBusinessException {
|
1435 |
throws ProfitMandiBusinessException {
|
| 1430 |
List<ItemWiseTertiaryModel> itemWiseTertiary = fofoOrderRepository.SelectItemWiseTertiary(fofoId);
|
1436 |
List<ItemWiseTertiaryModel> itemWiseTertiary = fofoOrderRepository.SelectItemWiseTertiary(fofoId);
|
| 1431 |
|
1437 |
|
| 1432 |
LOGGER.info("itemWiseTertiary" + itemWiseTertiary);
|
1438 |
LOGGER.info("itemWiseTertiary" + itemWiseTertiary);
|
| 1433 |
|
- |
|
| - |
|
1439 |
CustomRetailer customRetailer = retailerService.getFofoRetailer(fofoId);
|
| - |
|
1440 |
model.addAttribute("customRetailer", customRetailer);
|
| 1434 |
model.addAttribute("itemWiseTertiary", itemWiseTertiary);
|
1441 |
model.addAttribute("itemWiseTertiary", itemWiseTertiary);
|
| 1435 |
return "item-wise-tertiary";
|
1442 |
return "item-wise-tertiary";
|
| 1436 |
}
|
1443 |
}
|
| 1437 |
|
1444 |
|
| - |
|
1445 |
@RequestMapping(value = "/getItemWiseIndent", method = RequestMethod.GET)
|
| - |
|
1446 |
public String getItemWiseIndent(HttpServletRequest request,
|
| - |
|
1447 |
@RequestParam(name = ProfitMandiConstants.FOFO_ID) int fofoId, Model model)
|
| - |
|
1448 |
throws ProfitMandiBusinessException {
|
| - |
|
1449 |
|
| - |
|
1450 |
List<Order> unbilledOrders = transactionService.getInTransitOrders(fofoId);
|
| - |
|
1451 |
model.addAttribute("unbilledOrders", unbilledOrders);
|
| - |
|
1452 |
|
| - |
|
1453 |
return "item-wise-indent";
|
| - |
|
1454 |
}
|
| - |
|
1455 |
|
| 1438 |
}
|
1456 |
}
|