| Line 6... |
Line 6... |
| 6 |
import com.spice.profitmandi.common.model.*;
|
6 |
import com.spice.profitmandi.common.model.*;
|
| 7 |
import com.spice.profitmandi.common.services.ReporticoService;
|
7 |
import com.spice.profitmandi.common.services.ReporticoService;
|
| 8 |
import com.spice.profitmandi.common.util.FileUtil;
|
8 |
import com.spice.profitmandi.common.util.FileUtil;
|
| 9 |
import com.spice.profitmandi.common.util.FormattingUtils;
|
9 |
import com.spice.profitmandi.common.util.FormattingUtils;
|
| 10 |
import com.spice.profitmandi.common.util.Utils;
|
10 |
import com.spice.profitmandi.common.util.Utils;
|
| 11 |
import com.spice.profitmandi.dao.entity.auth.AuthUser;
|
- |
|
| 12 |
import com.spice.profitmandi.dao.entity.catalog.Item;
|
11 |
import com.spice.profitmandi.dao.entity.catalog.Item;
|
| 13 |
import com.spice.profitmandi.dao.entity.catalog.TagListing;
|
12 |
import com.spice.profitmandi.dao.entity.catalog.TagListing;
|
| 14 |
import com.spice.profitmandi.dao.entity.dtr.User;
|
- |
|
| 15 |
import com.spice.profitmandi.dao.entity.fofo.FofoStore;
|
13 |
import com.spice.profitmandi.dao.entity.fofo.FofoStore;
|
| 16 |
import com.spice.profitmandi.dao.entity.fofo.PartnerType;
|
14 |
import com.spice.profitmandi.dao.entity.fofo.PartnerType;
|
| 17 |
import com.spice.profitmandi.dao.entity.inventory.ItemPricingHistory;
|
15 |
import com.spice.profitmandi.dao.entity.inventory.ItemPricingHistory;
|
| 18 |
import com.spice.profitmandi.dao.entity.inventory.VendorItemPricing;
|
16 |
import com.spice.profitmandi.dao.entity.inventory.VendorItemPricing;
|
| 19 |
import com.spice.profitmandi.dao.entity.transaction.PriceDrop;
|
17 |
import com.spice.profitmandi.dao.entity.transaction.PriceDrop;
|
| Line 400... |
Line 398... |
| 400 |
priceDrop.getOldDp(), priceDrop.getNewDp());
|
398 |
priceDrop.getOldDp(), priceDrop.getNewDp());
|
| 401 |
}
|
399 |
}
|
| 402 |
sendNotificationModel.setTitle(title);
|
400 |
sendNotificationModel.setTitle(title);
|
| 403 |
sendNotificationModel.setMessage(message);
|
401 |
sendNotificationModel.setMessage(message);
|
| 404 |
sendNotificationModel.setMessageType(MessageType.pricechange);
|
402 |
sendNotificationModel.setMessageType(MessageType.pricechange);
|
| 405 |
sendNotificationModel.setUserIds(fofoStoreRepository.selectAllDtrUserIds());
|
- |
|
| 406 |
Set<AuthUser> authUsers = new HashSet<>(csService.getAuthUserByCategoryId(ProfitMandiConstants.TICKET_CATEGORY_RBM));
|
- |
|
| 407 |
authUsers.addAll(csService.getAuthUserByCategoryId(ProfitMandiConstants.TICKET_CATEGORY_CATEGORY));
|
- |
|
| 408 |
authUsers.addAll(csService.getAuthUserByCategoryId(ProfitMandiConstants.TICKET_CATEGORY_SALES));
|
- |
|
| 409 |
List<String> emailIds = authUsers.stream().map(x->x.getEmailId()).collect(Collectors.toList());
|
- |
|
| 410 |
List<User> user = dtrUserRepository.selectAllByEmailIds(emailIds);
|
- |
|
| 411 |
sendNotificationModel.getUserIds().addAll(user.stream().map(x->x.getId()).collect(Collectors.toList()));
|
- |
|
| 412 |
notificationService.sendNotification(sendNotificationModel);
|
403 |
notificationService.sendNotificationToAll(sendNotificationModel);
|
| 413 |
}
|
404 |
}
|
| 414 |
|
405 |
|
| 415 |
@RequestMapping(value = "/downloadtotalPriceDropIMEI/{priceDropId}", method = RequestMethod.GET)
|
406 |
@RequestMapping(value = "/downloadtotalPriceDropIMEI/{priceDropId}", method = RequestMethod.GET)
|
| 416 |
public ResponseEntity<?> downloadTotalPriceDropIMEI(HttpServletRequest request, @PathVariable int priceDropId,
|
407 |
public ResponseEntity<?> downloadTotalPriceDropIMEI(HttpServletRequest request, @PathVariable int priceDropId,
|
| 417 |
Model model) throws ProfitMandiBusinessException, Exception {
|
408 |
Model model) throws ProfitMandiBusinessException, Exception {
|