| Line 40... |
Line 40... |
| 40 |
import com.spice.profitmandi.service.PartnerInvestmentService;
|
40 |
import com.spice.profitmandi.service.PartnerInvestmentService;
|
| 41 |
import com.spice.profitmandi.service.PartnerStatsService;
|
41 |
import com.spice.profitmandi.service.PartnerStatsService;
|
| 42 |
import com.spice.profitmandi.service.authentication.RoleManager;
|
42 |
import com.spice.profitmandi.service.authentication.RoleManager;
|
| 43 |
import com.spice.profitmandi.service.inventory.InventoryService;
|
43 |
import com.spice.profitmandi.service.inventory.InventoryService;
|
| 44 |
import com.spice.profitmandi.service.offers.OfferService;
|
44 |
import com.spice.profitmandi.service.offers.OfferService;
|
| 45 |
import com.spice.profitmandi.service.transaction.SDCreditService;
|
- |
|
| 46 |
import com.spice.profitmandi.service.transaction.TransactionService;
|
45 |
import com.spice.profitmandi.service.transaction.TransactionService;
|
| 47 |
import com.spice.profitmandi.service.user.RetailerService;
|
46 |
import com.spice.profitmandi.service.user.RetailerService;
|
| 48 |
import com.spice.profitmandi.web.model.LoginDetails;
|
47 |
import com.spice.profitmandi.web.model.LoginDetails;
|
| 49 |
import com.spice.profitmandi.web.util.CookiesProcessor;
|
48 |
import com.spice.profitmandi.web.util.CookiesProcessor;
|
| 50 |
import com.spice.profitmandi.web.util.MVCResponseSender;
|
49 |
import com.spice.profitmandi.web.util.MVCResponseSender;
|
| Line 227... |
Line 226... |
| 227 |
@Autowired
|
226 |
@Autowired
|
| 228 |
private MonthlyTargetRepository monthlyTargetRepository;
|
227 |
private MonthlyTargetRepository monthlyTargetRepository;
|
| 229 |
|
228 |
|
| 230 |
@Autowired
|
229 |
@Autowired
|
| 231 |
private SamsungUpgradeOfferRepository samsungUpgradeOfferRepository;
|
230 |
private SamsungUpgradeOfferRepository samsungUpgradeOfferRepository;
|
| 232 |
|
- |
|
| 233 |
|
- |
|
| 234 |
private static final Logger LOGGER = LogManager.getLogger(DashboardController.class);
|
231 |
private static final Logger LOGGER = LogManager.getLogger(DashboardController.class);
|
| 235 |
|
232 |
|
| 236 |
|
- |
|
| 237 |
@RequestMapping(value = "/12dashboard34", method = RequestMethod.GET)
|
233 |
@RequestMapping(value = "/12dashboard34", method = RequestMethod.GET)
|
| 238 |
public String dashboard1(HttpServletRequest request, Model model, @RequestParam int fofoId) throws Exception {
|
234 |
public String dashboard1(HttpServletRequest request, Model model, @RequestParam int fofoId) throws Exception {
|
| 239 |
boolean isAdmin = false;
|
235 |
boolean isAdmin = false;
|
| 240 |
model.addAttribute("isAdmin", isAdmin);
|
236 |
model.addAttribute("isAdmin", isAdmin);
|
| 241 |
|
237 |
|
| Line 1154... |
Line 1150... |
| 1154 |
return "auth_user_partner_detail";
|
1150 |
return "auth_user_partner_detail";
|
| 1155 |
}
|
1151 |
}
|
| 1156 |
|
1152 |
|
| 1157 |
|
1153 |
|
| 1158 |
@RequestMapping(value = "/getWarehouseWiseBrandStock", method = RequestMethod.GET)
|
1154 |
@RequestMapping(value = "/getWarehouseWiseBrandStock", method = RequestMethod.GET)
|
| 1159 |
public String getWarehouseWiseBrandStock (HttpServletRequest request, Model model, @RequestParam List<Integer> warehouseId) throws Exception {
|
1155 |
public String getWarehouseWiseBrandStock(HttpServletRequest request, Model model, @RequestParam List<Integer> warehouseId) throws Exception {
|
| 1160 |
LoginDetails loginDetails = cookiesProcessor.getCookiesObject(request);
|
1156 |
LoginDetails loginDetails = cookiesProcessor.getCookiesObject(request);
|
| 1161 |
String email = loginDetails.getEmailId();
|
1157 |
String email = loginDetails.getEmailId();
|
| 1162 |
Set<Integer> authfofoIds = csService1.getAuthFofoIds(email, true);
|
1158 |
Set<Integer> authfofoIds = csService1.getAuthFofoIds(email, true);
|
| 1163 |
Map<Integer, List<Integer>> warehouseIdFofoIdMap = fofoStoreRepository.selectActivePartnersByRetailerIds(new ArrayList<>(authfofoIds)).stream().collect(Collectors.groupingBy(
|
1159 |
Map<Integer, List<Integer>> warehouseIdFofoIdMap = fofoStoreRepository.selectActivePartnersByRetailerIds(new ArrayList<>(authfofoIds)).stream().collect(Collectors.groupingBy(
|
| 1164 |
FofoStore::getWarehouseId, Collectors.mapping(FofoStore::getId, Collectors.toList())));
|
1160 |
FofoStore::getWarehouseId, Collectors.mapping(FofoStore::getId, Collectors.toList())));
|