| Line 8... |
Line 8... |
| 8 |
import com.spice.profitmandi.dao.entity.auth.Menu;
|
8 |
import com.spice.profitmandi.dao.entity.auth.Menu;
|
| 9 |
import com.spice.profitmandi.dao.entity.cs.Position;
|
9 |
import com.spice.profitmandi.dao.entity.cs.Position;
|
| 10 |
import com.spice.profitmandi.dao.entity.fofo.FofoStore;
|
10 |
import com.spice.profitmandi.dao.entity.fofo.FofoStore;
|
| 11 |
import com.spice.profitmandi.dao.entity.fofo.PartnerType;
|
11 |
import com.spice.profitmandi.dao.entity.fofo.PartnerType;
|
| 12 |
import com.spice.profitmandi.dao.entity.inventory.ReporticoCacheTable;
|
12 |
import com.spice.profitmandi.dao.entity.inventory.ReporticoCacheTable;
|
| - |
|
13 |
import com.spice.profitmandi.dao.entity.transaction.Loan;
|
| - |
|
14 |
import com.spice.profitmandi.dao.entity.transaction.LoanSummary;
|
| 13 |
import com.spice.profitmandi.dao.enumuration.cs.EscalationType;
|
15 |
import com.spice.profitmandi.dao.enumuration.cs.EscalationType;
|
| 14 |
import com.spice.profitmandi.dao.model.BrandWiseModel;
|
16 |
import com.spice.profitmandi.dao.model.BrandWiseModel;
|
| 15 |
import com.spice.profitmandi.dao.model.PartnerDetailModel;
|
17 |
import com.spice.profitmandi.dao.model.PartnerDetailModel;
|
| 16 |
import com.spice.profitmandi.dao.model.WarehouseWiseStockModel;
|
18 |
import com.spice.profitmandi.dao.model.WarehouseWiseStockModel;
|
| 17 |
import com.spice.profitmandi.dao.repository.auth.AuthRepository;
|
19 |
import com.spice.profitmandi.dao.repository.auth.AuthRepository;
|
| Line 24... |
Line 26... |
| 24 |
import com.spice.profitmandi.dao.repository.dtr.FofoStoreRepository;
|
26 |
import com.spice.profitmandi.dao.repository.dtr.FofoStoreRepository;
|
| 25 |
import com.spice.profitmandi.dao.repository.fofo.ActivatedImeiRepository;
|
27 |
import com.spice.profitmandi.dao.repository.fofo.ActivatedImeiRepository;
|
| 26 |
import com.spice.profitmandi.dao.repository.inventory.ReporticoCacheTableRepository;
|
28 |
import com.spice.profitmandi.dao.repository.inventory.ReporticoCacheTableRepository;
|
| 27 |
import com.spice.profitmandi.dao.repository.inventory.SaholicInventoryCISRepository;
|
29 |
import com.spice.profitmandi.dao.repository.inventory.SaholicInventoryCISRepository;
|
| 28 |
import com.spice.profitmandi.dao.repository.transaction.OrderRepository;
|
30 |
import com.spice.profitmandi.dao.repository.transaction.OrderRepository;
|
| - |
|
31 |
import com.spice.profitmandi.dao.repository.transaction.SDCreditRequirementRepository;
|
| - |
|
32 |
import com.spice.profitmandi.service.transaction.SDCreditService;
|
| 29 |
import com.spice.profitmandi.service.user.RetailerService;
|
33 |
import com.spice.profitmandi.service.user.RetailerService;
|
| 30 |
import org.apache.logging.log4j.LogManager;
|
34 |
import org.apache.logging.log4j.LogManager;
|
| 31 |
import org.apache.logging.log4j.Logger;
|
35 |
import org.apache.logging.log4j.Logger;
|
| 32 |
import org.springframework.beans.factory.annotation.Autowired;
|
36 |
import org.springframework.beans.factory.annotation.Autowired;
|
| 33 |
import org.springframework.stereotype.Component;
|
37 |
import org.springframework.stereotype.Component;
|
| Line 93... |
Line 97... |
| 93 |
@Autowired
|
97 |
@Autowired
|
| 94 |
private ActivatedImeiRepository activatedImeiRepository;
|
98 |
private ActivatedImeiRepository activatedImeiRepository;
|
| 95 |
|
99 |
|
| 96 |
@Autowired
|
100 |
@Autowired
|
| 97 |
private PartnerStatsService partnerStatsService;
|
101 |
private PartnerStatsService partnerStatsService;
|
| - |
|
102 |
@Autowired
|
| - |
|
103 |
private SDCreditService sdCreditService;
|
| 98 |
List<String> emails = Arrays.asList("kamini.sharma@smartdukaan.com", "neeraj.gupta@smartdukaan.com",
|
104 |
List<String> emails = Arrays.asList("kamini.sharma@smartdukaan.com", "neeraj.gupta@smartdukaan.com",
|
| 99 |
"tejbeer.kaur@smartdukaan.com", "amit.gupta@smartdukaan.com", "kanan.choudhary@smartdukaan.com");
|
105 |
"tejbeer.kaur@smartdukaan.com", "amit.gupta@smartdukaan.com", "kanan.choudhary@smartdukaan.com");
|
| 100 |
|
106 |
|
| 101 |
List<String> colorList = Arrays.asList("mediumseagreen", "dodgerblue", "darkblue", "gold", "#eb0029", "coral",
|
107 |
List<String> colorList = Arrays.asList("mediumseagreen", "dodgerblue", "darkblue", "gold", "#eb0029", "coral",
|
| 102 |
"#63C5DA", "red", "deeppink", "midnightblue", "cornsilk");
|
108 |
"#63C5DA", "red", "deeppink", "midnightblue", "cornsilk");
|
| Line 465... |
Line 471... |
| 465 |
|
471 |
|
| 466 |
Map<Integer, String> warehouseMap = ProfitMandiConstants.WAREHOUSE_MAP;
|
472 |
Map<Integer, String> warehouseMap = ProfitMandiConstants.WAREHOUSE_MAP;
|
| 467 |
Map<Integer, String> wm = new LinkedHashMap<>();
|
473 |
Map<Integer, String> wm = new LinkedHashMap<>();
|
| 468 |
|
474 |
|
| 469 |
Map<AuthUser, Long> authUserTicketCount = null;
|
475 |
Map<AuthUser, Long> authUserTicketCount = null;
|
| - |
|
476 |
LoanSummary loanSummary= sdCreditService.getLoanSummary();
|
| - |
|
477 |
model.addAttribute("loanSummary",loanSummary);
|
| - |
|
478 |
|
| 470 |
|
479 |
|
| 471 |
for (Map.Entry<Integer, String> entry : warehouseMap.entrySet()) {
|
480 |
for (Map.Entry<Integer, String> entry : warehouseMap.entrySet()) {
|
| 472 |
wm.put(entry.getKey(), entry.getValue());
|
481 |
wm.put(entry.getKey(), entry.getValue());
|
| 473 |
}
|
482 |
}
|
| 474 |
|
483 |
|