| 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.entity.transaction.LoanSummary;
|
| 15 |
import com.spice.profitmandi.dao.enumuration.cs.EscalationType;
|
14 |
import com.spice.profitmandi.dao.enumuration.cs.EscalationType;
|
| 16 |
import com.spice.profitmandi.dao.model.BrandWiseModel;
|
15 |
import com.spice.profitmandi.dao.model.BrandWiseModel;
|
| 17 |
import com.spice.profitmandi.dao.model.PartnerDetailModel;
|
16 |
import com.spice.profitmandi.dao.model.PartnerDetailModel;
|
| 18 |
import com.spice.profitmandi.dao.model.WarehouseWiseStockModel;
|
17 |
import com.spice.profitmandi.dao.model.WarehouseWiseStockModel;
|
| Line 26... |
Line 25... |
| 26 |
import com.spice.profitmandi.dao.repository.dtr.FofoStoreRepository;
|
25 |
import com.spice.profitmandi.dao.repository.dtr.FofoStoreRepository;
|
| 27 |
import com.spice.profitmandi.dao.repository.fofo.ActivatedImeiRepository;
|
26 |
import com.spice.profitmandi.dao.repository.fofo.ActivatedImeiRepository;
|
| 28 |
import com.spice.profitmandi.dao.repository.inventory.ReporticoCacheTableRepository;
|
27 |
import com.spice.profitmandi.dao.repository.inventory.ReporticoCacheTableRepository;
|
| 29 |
import com.spice.profitmandi.dao.repository.inventory.SaholicInventoryCISRepository;
|
28 |
import com.spice.profitmandi.dao.repository.inventory.SaholicInventoryCISRepository;
|
| 30 |
import com.spice.profitmandi.dao.repository.transaction.OrderRepository;
|
29 |
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;
|
30 |
import com.spice.profitmandi.service.transaction.SDCreditService;
|
| 33 |
import com.spice.profitmandi.service.user.RetailerService;
|
31 |
import com.spice.profitmandi.service.user.RetailerService;
|
| 34 |
import org.apache.logging.log4j.LogManager;
|
32 |
import org.apache.logging.log4j.LogManager;
|
| 35 |
import org.apache.logging.log4j.Logger;
|
33 |
import org.apache.logging.log4j.Logger;
|
| 36 |
import org.springframework.beans.factory.annotation.Autowired;
|
34 |
import org.springframework.beans.factory.annotation.Autowired;
|
| Line 571... |
Line 569... |
| 571 |
authUserTicketCount = ticketRepository.selectAllAuthUserTicketCount(Optional.of(false));
|
569 |
authUserTicketCount = ticketRepository.selectAllAuthUserTicketCount(Optional.of(false));
|
| 572 |
}
|
570 |
}
|
| 573 |
}
|
571 |
}
|
| 574 |
|
572 |
|
| 575 |
if (Arrays.asList("amit.gupta@smartdukaan.com", "tejbeer.kaur@smartdukaan.com",
|
573 |
if (Arrays.asList("amit.gupta@smartdukaan.com", "tejbeer.kaur@smartdukaan.com",
|
| 576 |
"kanan.choudhary@smartdukaan.com").contains(email)) {
|
574 |
"kanan.choudhary@smartdukaan.com", "jaihind.yadav@smartdukaan.com").contains(email)) {
|
| 577 |
menus = menuRepository.selectAll();
|
575 |
menus = menuRepository.selectAll();
|
| 578 |
} else if (positions.size() > 0) {
|
576 |
} else if (positions.size() > 0) {
|
| 579 |
if (positions.stream().filter(x -> x.getEscalationType().equals(EscalationType.L5)).count() > 0) {
|
577 |
if (positions.stream().filter(x -> x.getEscalationType().equals(EscalationType.L5)).count() > 0) {
|
| 580 |
menus = menuRepository.selectAll();
|
578 |
menus = menuRepository.selectAll();
|
| 581 |
} else {
|
579 |
} else {
|