| Line 29... |
Line 29... |
| 29 |
import com.spice.profitmandi.service.RbmTargetService;
|
29 |
import com.spice.profitmandi.service.RbmTargetService;
|
| 30 |
import com.spice.profitmandi.service.inventory.*;
|
30 |
import com.spice.profitmandi.service.inventory.*;
|
| 31 |
import com.spice.profitmandi.service.transaction.SDCreditService;
|
31 |
import com.spice.profitmandi.service.transaction.SDCreditService;
|
| 32 |
import com.spice.profitmandi.service.user.RetailerService;
|
32 |
import com.spice.profitmandi.service.user.RetailerService;
|
| 33 |
import com.spice.profitmandi.service.wallet.WalletService;
|
33 |
import com.spice.profitmandi.service.wallet.WalletService;
|
| 34 |
import in.shop2020.model.v1.order.OrderStatus;
|
- |
|
| 35 |
import in.shop2020.model.v1.order.WalletReferenceType;
|
34 |
import in.shop2020.model.v1.order.WalletReferenceType;
|
| 36 |
import org.apache.commons.io.output.ByteArrayOutputStream;
|
35 |
import org.apache.commons.io.output.ByteArrayOutputStream;
|
| 37 |
import org.apache.logging.log4j.LogManager;
|
36 |
import org.apache.logging.log4j.LogManager;
|
| 38 |
import org.apache.logging.log4j.Logger;
|
37 |
import org.apache.logging.log4j.Logger;
|
| 39 |
import org.apache.poi.common.usermodel.HyperlinkType;
|
38 |
import org.apache.poi.common.usermodel.HyperlinkType;
|
| Line 425... |
Line 424... |
| 425 |
.append("</tr>");
|
424 |
.append("</tr>");
|
| 426 |
|
425 |
|
| 427 |
for (SalesRating rating : feedbackList) {
|
426 |
for (SalesRating rating : feedbackList) {
|
| 428 |
String salesL1 = salesL1NameMap.getOrDefault(rating.getSalesL1Id(), "Unknown Sales Person");
|
427 |
String salesL1 = salesL1NameMap.getOrDefault(rating.getSalesL1Id(), "Unknown Sales Person");
|
| 429 |
String partnerName = fofoNameMap.getOrDefault(rating.getFofoId(), "Unknown Partner");
|
428 |
String partnerName = fofoNameMap.getOrDefault(rating.getFofoId(), "Unknown Partner");
|
| - |
|
429 |
LOGGER.info("partnerName11- {}",partnerName);
|
| 430 |
PartnerType partnerType = partnerTypeChangeService.getTypeOnDate(rating.getFofoId(), LocalDate.now());
|
430 |
PartnerType partnerType = partnerTypeChangeService.getTypeOnDate(rating.getFofoId(), LocalDate.now());
|
| 431 |
emailContent.append("<tr>")
|
431 |
emailContent.append("<tr>")
|
| 432 |
.append("<td>").append(salesL1).append("</td>")
|
432 |
.append("<td>").append(salesL1).append("</td>")
|
| 433 |
.append("<td>").append(partnerName).append("</td>")
|
433 |
.append("<td>").append(partnerName).append("</td>")
|
| 434 |
.append("<td>").append(partnerType).append("</td>")
|
434 |
.append("<td>").append(partnerType).append("</td>")
|
| Line 476... |
Line 476... |
| 476 |
|
476 |
|
| 477 |
Map<Integer, CustomRetailer> customRetailers = retailerService.getAllFofoRetailersInternalFalse();
|
477 |
Map<Integer, CustomRetailer> customRetailers = retailerService.getAllFofoRetailersInternalFalse();
|
| 478 |
|
478 |
|
| 479 |
List<Integer> retailerIds = customRetailers.values().stream().map(CustomRetailer::getPartnerId).collect(Collectors.toList());
|
479 |
List<Integer> retailerIds = customRetailers.values().stream().map(CustomRetailer::getPartnerId).collect(Collectors.toList());
|
| 480 |
|
480 |
|
| 481 |
/* List<Integer> retailerIds = Arrays.asList(175139247);
|
481 |
/* List<Integer> retailerIds = Arrays.asList(175139247,175139660);
|
| 482 |
Map<Integer,CustomRetailer> customRetailers = retailerService.getFofoRetailers(retailerIds);*/
|
482 |
Map<Integer,CustomRetailer> customRetailers = retailerService.getFofoRetailers(retailerIds);*/
|
| 483 |
|
483 |
|
| 484 |
//partner daily investment
|
484 |
//partner daily investment
|
| 485 |
List<Loan> defaultLoans = sdCreditService.getDefaultLoans();
|
485 |
List<Loan> defaultLoans = sdCreditService.getDefaultLoans();
|
| 486 |
Map<Integer,List<Loan>> defaultLoanMap = defaultLoans.stream().collect(Collectors.groupingBy(Loan::getFofoId));
|
486 |
Map<Integer,List<Loan>> defaultLoanMap = defaultLoans.stream().collect(Collectors.groupingBy(Loan::getFofoId));
|