| Line 13... |
Line 13... |
| 13 |
import com.spice.profitmandi.common.enumuration.*;
|
13 |
import com.spice.profitmandi.common.enumuration.*;
|
| 14 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
14 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
| 15 |
import com.spice.profitmandi.common.model.*;
|
15 |
import com.spice.profitmandi.common.model.*;
|
| 16 |
import com.spice.profitmandi.common.services.ReporticoService;
|
16 |
import com.spice.profitmandi.common.services.ReporticoService;
|
| 17 |
import com.spice.profitmandi.common.services.mandii.MandiiService;
|
17 |
import com.spice.profitmandi.common.services.mandii.MandiiService;
|
| - |
|
18 |
import com.spice.profitmandi.common.util.FileUtil;
|
| - |
|
19 |
import com.spice.profitmandi.common.util.FormattingUtils;
|
| - |
|
20 |
import com.spice.profitmandi.common.util.PdfUtils;
|
| 18 |
import com.spice.profitmandi.common.util.*;
|
21 |
import com.spice.profitmandi.common.util.Utils;
|
| 19 |
import com.spice.profitmandi.common.util.Utils.Attachment;
|
22 |
import com.spice.profitmandi.common.util.Utils.Attachment;
|
| 20 |
import com.spice.profitmandi.common.web.client.RestClient;
|
23 |
import com.spice.profitmandi.common.web.client.RestClient;
|
| 21 |
import com.spice.profitmandi.dao.Interface.Campaign;
|
24 |
import com.spice.profitmandi.dao.Interface.Campaign;
|
| 22 |
import com.spice.profitmandi.dao.cart.CartService;
|
25 |
import com.spice.profitmandi.dao.cart.CartService;
|
| 23 |
import com.spice.profitmandi.dao.cart.SmartCartService;
|
26 |
import com.spice.profitmandi.dao.cart.SmartCartService;
|
| Line 25... |
Line 28... |
| 25 |
import com.spice.profitmandi.dao.entity.auth.PartnerCollectionRemark;
|
28 |
import com.spice.profitmandi.dao.entity.auth.PartnerCollectionRemark;
|
| 26 |
import com.spice.profitmandi.dao.entity.catalog.*;
|
29 |
import com.spice.profitmandi.dao.entity.catalog.*;
|
| 27 |
import com.spice.profitmandi.dao.entity.cs.NonSdBuying;
|
30 |
import com.spice.profitmandi.dao.entity.cs.NonSdBuying;
|
| 28 |
import com.spice.profitmandi.dao.entity.cs.Position;
|
31 |
import com.spice.profitmandi.dao.entity.cs.Position;
|
| 29 |
import com.spice.profitmandi.dao.entity.cs.Ticket;
|
32 |
import com.spice.profitmandi.dao.entity.cs.Ticket;
|
| 30 |
import com.spice.profitmandi.dao.entity.dtr.User;
|
- |
|
| 31 |
import com.spice.profitmandi.dao.entity.dtr.*;
|
33 |
import com.spice.profitmandi.dao.entity.dtr.*;
|
| - |
|
34 |
import com.spice.profitmandi.dao.entity.dtr.User;
|
| 32 |
import com.spice.profitmandi.dao.entity.fofo.*;
|
35 |
import com.spice.profitmandi.dao.entity.fofo.*;
|
| 33 |
import com.spice.profitmandi.dao.entity.inventory.*;
|
36 |
import com.spice.profitmandi.dao.entity.inventory.*;
|
| 34 |
import com.spice.profitmandi.dao.entity.logistics.AST;
|
37 |
import com.spice.profitmandi.dao.entity.logistics.AST;
|
| 35 |
import com.spice.profitmandi.dao.entity.logistics.ASTRepository;
|
38 |
import com.spice.profitmandi.dao.entity.logistics.ASTRepository;
|
| 36 |
import com.spice.profitmandi.dao.entity.transaction.*;
|
39 |
import com.spice.profitmandi.dao.entity.transaction.*;
|
| Line 64... |
Line 67... |
| 64 |
import com.spice.profitmandi.dao.repository.dtr.*;
|
67 |
import com.spice.profitmandi.dao.repository.dtr.*;
|
| 65 |
import com.spice.profitmandi.dao.repository.fofo.*;
|
68 |
import com.spice.profitmandi.dao.repository.fofo.*;
|
| 66 |
import com.spice.profitmandi.dao.repository.inventory.*;
|
69 |
import com.spice.profitmandi.dao.repository.inventory.*;
|
| 67 |
import com.spice.profitmandi.dao.repository.logistics.WarehouseProviderRepository;
|
70 |
import com.spice.profitmandi.dao.repository.logistics.WarehouseProviderRepository;
|
| 68 |
import com.spice.profitmandi.dao.repository.transaction.*;
|
71 |
import com.spice.profitmandi.dao.repository.transaction.*;
|
| - |
|
72 |
import com.spice.profitmandi.dao.repository.trialOnboarding.TrialFormRepository;
|
| 69 |
import com.spice.profitmandi.dao.repository.user.AddressRepository;
|
73 |
import com.spice.profitmandi.dao.repository.user.AddressRepository;
|
| 70 |
import com.spice.profitmandi.dao.repository.user.LoiFormRepository;
|
74 |
import com.spice.profitmandi.dao.repository.user.LoiFormRepository;
|
| 71 |
import com.spice.profitmandi.dao.repository.user.UserRepository;
|
75 |
import com.spice.profitmandi.dao.repository.user.UserRepository;
|
| 72 |
import com.spice.profitmandi.dao.repository.warehouse.*;
|
76 |
import com.spice.profitmandi.dao.repository.warehouse.*;
|
| 73 |
import com.spice.profitmandi.dao.service.LiquidationService;
|
77 |
import com.spice.profitmandi.dao.service.LiquidationService;
|
| Line 92... |
Line 96... |
| 92 |
import com.spice.profitmandi.service.pricing.PriceDropService;
|
96 |
import com.spice.profitmandi.service.pricing.PriceDropService;
|
| 93 |
import com.spice.profitmandi.service.recharge.provider.OxigenRechargeProviderService;
|
97 |
import com.spice.profitmandi.service.recharge.provider.OxigenRechargeProviderService;
|
| 94 |
import com.spice.profitmandi.service.recharge.provider.ThinkWalnutDigitalRechargeProviderService;
|
98 |
import com.spice.profitmandi.service.recharge.provider.ThinkWalnutDigitalRechargeProviderService;
|
| 95 |
import com.spice.profitmandi.service.scheme.SchemeService;
|
99 |
import com.spice.profitmandi.service.scheme.SchemeService;
|
| 96 |
import com.spice.profitmandi.service.serviceConfig.ServiceConfigService;
|
100 |
import com.spice.profitmandi.service.serviceConfig.ServiceConfigService;
|
| - |
|
101 |
import com.spice.profitmandi.service.transaction.CreditBlockedExceptionPartnersRepository;
|
| 97 |
import com.spice.profitmandi.service.transaction.CreditNoteService;
|
102 |
import com.spice.profitmandi.service.transaction.CreditNoteService;
|
| 98 |
import com.spice.profitmandi.service.transaction.SDCreditService;
|
103 |
import com.spice.profitmandi.service.transaction.SDCreditService;
|
| 99 |
import com.spice.profitmandi.service.transaction.TransactionService;
|
104 |
import com.spice.profitmandi.service.transaction.TransactionService;
|
| 100 |
import com.spice.profitmandi.service.transaction.invoicing.InvoiceService;
|
105 |
import com.spice.profitmandi.service.transaction.invoicing.InvoiceService;
|
| 101 |
import com.spice.profitmandi.service.user.RetailerService;
|
106 |
import com.spice.profitmandi.service.user.RetailerService;
|
| Line 832... |
Line 837... |
| 832 |
|
837 |
|
| 833 |
public void processDeductions() {
|
838 |
public void processDeductions() {
|
| 834 |
sidbiService.processDeductions();
|
839 |
sidbiService.processDeductions();
|
| 835 |
}
|
840 |
}
|
| 836 |
|
841 |
|
| 837 |
public void resetHardLimit() {
|
842 |
public void resetHardLimit() throws ProfitMandiBusinessException{
|
| 838 |
sdCreditService.resetHardLimit();
|
843 |
sdCreditService.resetHardLimit();
|
| 839 |
}
|
844 |
}
|
| 840 |
|
845 |
|
| 841 |
public void testInvoiceFormat() throws ProfitMandiBusinessException {
|
846 |
public void testInvoiceFormat() throws ProfitMandiBusinessException {
|
| 842 |
InvoicePdfModel invoicePdfModel = orderService.getInvoicePdfModel(560280);
|
847 |
InvoicePdfModel invoicePdfModel = orderService.getInvoicePdfModel(560280);
|
| Line 1123... |
Line 1128... |
| 1123 |
x.getValue().size();
|
1128 |
x.getValue().size();
|
| 1124 |
});
|
1129 |
});
|
| 1125 |
|
1130 |
|
| 1126 |
}
|
1131 |
}
|
| 1127 |
|
1132 |
|
| - |
|
1133 |
@Autowired
|
| - |
|
1134 |
OnBoardingRelatedSchelduleTask onBoardingRelatedSchelduleTask;
|
| - |
|
1135 |
|
| - |
|
1136 |
@Autowired
|
| - |
|
1137 |
Migrations migrations;
|
| - |
|
1138 |
|
| - |
|
1139 |
/*@Autowired
|
| - |
|
1140 |
BenowService benowService;*/
|
| - |
|
1141 |
|
| - |
|
1142 |
@Autowired
|
| - |
|
1143 |
TrialFormRepository trialFormRepository;
|
| - |
|
1144 |
|
| - |
|
1145 |
@Autowired
|
| - |
|
1146 |
CreditBlockedExceptionPartnersRepository creditBlockedExceptionPartnersRepository;
|
| - |
|
1147 |
|
| - |
|
1148 |
@Autowired
|
| - |
|
1149 |
SDCreditService sdCreditService;
|
| - |
|
1150 |
|
| 1128 |
public void test() throws Exception {
|
1151 |
public void test() throws Exception {
|
| - |
|
1152 |
//System.out.println(trialFormRepository.selectByEmailOrMobile("9990381568"));
|
| - |
|
1153 |
/*CreditBlockedExceptionPartner creditBlockedExceptionPartner = creditBlockedExceptionPartnersRepository.select(175139430);
|
| - |
|
1154 |
System.out.println(creditBlockedExceptionPartner);*/
|
| - |
|
1155 |
|
| - |
|
1156 |
sdCreditService.resetHardLimit();
|
| - |
|
1157 |
//migrations.migrateSerialInvoiceMap();
|
| 1129 |
//runOnceTasks.checkRewardsEligibility();
|
1158 |
//runOnceTasks.checkRewardsEligibility();
|
| - |
|
1159 |
//hybridEncryptor.getJwt();
|
| - |
|
1160 |
/*System.out.printf("Date|Transaction Id|Serial Number|Sale Amount|Swipe Payout|Discount Payout%n");
|
| - |
|
1161 |
for(int i=0;i<10;i++){
|
| - |
|
1162 |
benowService.parseBenowTransaction(LocalDate.now().minusDays(i));
|
| - |
|
1163 |
}*/
|
| - |
|
1164 |
//onBoardingRelatedSchelduleTask.onboardingEventDelays();
|
| 1130 |
//runOnceTasks.migrateLimit();866009067657118
|
1165 |
//runOnceTasks.migrateLimit();866009067657118
|
| 1131 |
//TODO -- Sales Return Pending
|
1166 |
//TODO -- Sales Return Pending
|
| 1132 |
//runOnceTasks.moveSaleReturnScanToDoa("866009067657118");
|
1167 |
//runOnceTasks.moveSaleReturnScanToDoa("866009067657118");
|
| 1133 |
runOnceTasks.sendCreditExposureReport();
|
1168 |
//runOnceTasks.sendCreditExposureReport();
|
| 1134 |
//runOnceTasks.moveDoaScanToSaleReturn("868770072438608");
|
1169 |
//runOnceTasks.moveDoaScanToSaleReturn("868770072438608");
|
| 1135 |
//runOnceTasks.purchasePolicy();
|
1170 |
//runOnceTasks.purchasePolicy();
|
| 1136 |
//purSaleService.moreThen10DaysEgedStockReport();
|
1171 |
//purSaleService.moreThen10DaysEgedStockReport();
|
| 1137 |
//System.out.println(schemeService.testRedis(1, 2L));
|
1172 |
//System.out.println(schemeService.testRedis(1, 2L));
|
| 1138 |
//System.out.println(schemeService.testRedis(1, null));
|
1173 |
//System.out.println(schemeService.testRedis(1, null));
|
| Line 3522... |
Line 3557... |
| 3522 |
|
3557 |
|
| 3523 |
@Autowired
|
3558 |
@Autowired
|
| 3524 |
private LoanStatementRepository loanStatementRepository;
|
3559 |
private LoanStatementRepository loanStatementRepository;
|
| 3525 |
|
3560 |
|
| 3526 |
@Autowired
|
3561 |
@Autowired
|
| 3527 |
private SDCreditService sdCreditService;
|
- |
|
| 3528 |
|
- |
|
| 3529 |
@Autowired
|
- |
|
| 3530 |
private SDCreditRequirementRepository sdCreditRequirementRepository;
|
3562 |
private SDCreditRequirementRepository sdCreditRequirementRepository;
|
| 3531 |
|
3563 |
|
| 3532 |
@Autowired
|
3564 |
@Autowired
|
| 3533 |
private CurrentPartnerDailyInvestmentRepository currentPartnerDailyInvestmentRepository;
|
3565 |
private CurrentPartnerDailyInvestmentRepository currentPartnerDailyInvestmentRepository;
|
| 3534 |
|
3566 |
|