| Line 1... |
Line 1... |
| 1 |
package com.spice.profitmandi.web.controller;
|
1 |
package com.spice.profitmandi.web.controller;
|
| 2 |
|
2 |
|
| - |
|
3 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
| 3 |
import com.spice.profitmandi.common.model.CustomRetailer;
|
4 |
import com.spice.profitmandi.common.model.CustomRetailer;
|
| 4 |
import com.spice.profitmandi.common.model.SendMessageModel;
|
5 |
import com.spice.profitmandi.common.model.SendMessageModel;
|
| 5 |
import com.spice.profitmandi.common.util.Utils;
|
6 |
import com.spice.profitmandi.common.util.Utils;
|
| 6 |
import com.spice.profitmandi.dao.repository.dtr.FofoStoreRepository;
|
7 |
import com.spice.profitmandi.dao.repository.dtr.FofoStoreRepository;
|
| 7 |
import com.spice.profitmandi.service.user.RetailerService;
|
8 |
import com.spice.profitmandi.service.user.RetailerService;
|
| Line 35... |
Line 36... |
| 35 |
private MVCResponseSender mvcResponseSender;
|
36 |
private MVCResponseSender mvcResponseSender;
|
| 36 |
|
37 |
|
| 37 |
private static final Logger Logger = LogManager.getLogger(NotificationController.class);
|
38 |
private static final Logger Logger = LogManager.getLogger(NotificationController.class);
|
| 38 |
|
39 |
|
| 39 |
@RequestMapping(value = "/sendMessagingPanel", method = RequestMethod.GET)
|
40 |
@RequestMapping(value = "/sendMessagingPanel", method = RequestMethod.GET)
|
| 40 |
public String sendMessagingPanel(HttpServletRequest request, Model model) {
|
41 |
public String sendMessagingPanel(HttpServletRequest request, Model model) throws ProfitMandiBusinessException {
|
| 41 |
|
42 |
|
| 42 |
List<Integer> fofoIds = fofoStoreRepository.selectAll().stream().map(x -> x.getId())
|
43 |
List<Integer> fofoIds = fofoStoreRepository.selectAll().stream().map(x -> x.getId())
|
| 43 |
.collect(Collectors.toList());
|
44 |
.collect(Collectors.toList());
|
| 44 |
|
45 |
|
| 45 |
Map<Integer, CustomRetailer> customRetailerMap = retailerService.getAllFofoRetailers();
|
46 |
Map<Integer, CustomRetailer> customRetailerMap = retailerService.getAllFofoRetailers();
|