| Line 55... |
Line 55... |
| 55 |
import com.spice.profitmandi.dao.entity.fofo.PartnerTargetDetails;
|
55 |
import com.spice.profitmandi.dao.entity.fofo.PartnerTargetDetails;
|
| 56 |
import com.spice.profitmandi.dao.entity.fofo.Purchase;
|
56 |
import com.spice.profitmandi.dao.entity.fofo.Purchase;
|
| 57 |
import com.spice.profitmandi.dao.entity.fofo.SaleHeadDetails;
|
57 |
import com.spice.profitmandi.dao.entity.fofo.SaleHeadDetails;
|
| 58 |
import com.spice.profitmandi.dao.entity.fofo.ScanRecord;
|
58 |
import com.spice.profitmandi.dao.entity.fofo.ScanRecord;
|
| 59 |
import com.spice.profitmandi.dao.entity.fofo.SchemeInOut;
|
59 |
import com.spice.profitmandi.dao.entity.fofo.SchemeInOut;
|
| - |
|
60 |
import com.spice.profitmandi.dao.entity.transaction.PriceDrop;
|
| 60 |
import com.spice.profitmandi.dao.enumuration.catalog.SchemeType;
|
61 |
import com.spice.profitmandi.dao.enumuration.catalog.SchemeType;
|
| 61 |
import com.spice.profitmandi.dao.enumuration.fofo.ScanType;
|
62 |
import com.spice.profitmandi.dao.enumuration.fofo.ScanType;
|
| 62 |
import com.spice.profitmandi.dao.repository.catalog.ItemRepository;
|
63 |
import com.spice.profitmandi.dao.repository.catalog.ItemRepository;
|
| 63 |
import com.spice.profitmandi.dao.repository.catalog.SchemeRepository;
|
64 |
import com.spice.profitmandi.dao.repository.catalog.SchemeRepository;
|
| 64 |
import com.spice.profitmandi.dao.repository.dtr.DailyRechargeRepository;
|
65 |
import com.spice.profitmandi.dao.repository.dtr.DailyRechargeRepository;
|
| Line 72... |
Line 73... |
| 72 |
import com.spice.profitmandi.dao.repository.fofo.PartnerTargetRepository;
|
73 |
import com.spice.profitmandi.dao.repository.fofo.PartnerTargetRepository;
|
| 73 |
import com.spice.profitmandi.dao.repository.fofo.PurchaseRepository;
|
74 |
import com.spice.profitmandi.dao.repository.fofo.PurchaseRepository;
|
| 74 |
import com.spice.profitmandi.dao.repository.fofo.ScanRecordRepository;
|
75 |
import com.spice.profitmandi.dao.repository.fofo.ScanRecordRepository;
|
| 75 |
import com.spice.profitmandi.dao.repository.fofo.SchemeInOutRepository;
|
76 |
import com.spice.profitmandi.dao.repository.fofo.SchemeInOutRepository;
|
| 76 |
import com.spice.profitmandi.dao.repository.transaction.OrderRepository;
|
77 |
import com.spice.profitmandi.dao.repository.transaction.OrderRepository;
|
| - |
|
78 |
import com.spice.profitmandi.dao.repository.transaction.PriceDropRepository;
|
| 77 |
import com.spice.profitmandi.service.PartnerInvestmentService;
|
79 |
import com.spice.profitmandi.service.PartnerInvestmentService;
|
| 78 |
import com.spice.profitmandi.service.inventory.InventoryService;
|
80 |
import com.spice.profitmandi.service.inventory.InventoryService;
|
| 79 |
import com.spice.profitmandi.service.order.OrderService;
|
81 |
import com.spice.profitmandi.service.order.OrderService;
|
| - |
|
82 |
import com.spice.profitmandi.service.pricing.PriceDropService;
|
| 80 |
import com.spice.profitmandi.service.recharge.provider.OxigenRechargeProviderService;
|
83 |
import com.spice.profitmandi.service.recharge.provider.OxigenRechargeProviderService;
|
| 81 |
import com.spice.profitmandi.service.recharge.provider.ThinkWalnutDigitalRechargeProviderService;
|
84 |
import com.spice.profitmandi.service.recharge.provider.ThinkWalnutDigitalRechargeProviderService;
|
| 82 |
import com.spice.profitmandi.service.scheme.SchemeService;
|
85 |
import com.spice.profitmandi.service.scheme.SchemeService;
|
| 83 |
import com.spice.profitmandi.service.slab.TargetSlabService;
|
86 |
import com.spice.profitmandi.service.slab.TargetSlabService;
|
| 84 |
import com.spice.profitmandi.service.transaction.TransactionService;
|
87 |
import com.spice.profitmandi.service.transaction.TransactionService;
|
| Line 94... |
Line 97... |
| 94 |
@Value("${oxigen.recharge.transaction.url}")
|
97 |
@Value("${oxigen.recharge.transaction.url}")
|
| 95 |
private String oxigenRechargeTransactionUrl;
|
98 |
private String oxigenRechargeTransactionUrl;
|
| 96 |
|
99 |
|
| 97 |
@Value("${oxigen.recharge.enquiry.url}")
|
100 |
@Value("${oxigen.recharge.enquiry.url}")
|
| 98 |
private String oxigenRechargeEnquiryUrl;
|
101 |
private String oxigenRechargeEnquiryUrl;
|
| - |
|
102 |
|
| - |
|
103 |
@Autowired
|
| - |
|
104 |
private PriceDropService priceDropService;
|
| 99 |
|
105 |
|
| 100 |
@Value("${oxigen.recharge.auth.key}")
|
106 |
@Value("${oxigen.recharge.auth.key}")
|
| 101 |
private String oxigenRechargeAuthKey;
|
107 |
private String oxigenRechargeAuthKey;
|
| 102 |
|
108 |
|
| 103 |
@Value("${oxigen.recharge.validation.url}")
|
109 |
@Value("${oxigen.recharge.validation.url}")
|
| Line 201... |
Line 207... |
| 201 |
|
207 |
|
| 202 |
@Autowired
|
208 |
@Autowired
|
| 203 |
private JavaMailSender mailSender;
|
209 |
private JavaMailSender mailSender;
|
| 204 |
|
210 |
|
| 205 |
@Autowired
|
211 |
@Autowired
|
| - |
|
212 |
private PriceDropRepository priceDropRepository;
|
| - |
|
213 |
|
| - |
|
214 |
@Autowired
|
| 206 |
private PartnerTargetRepository partnerTargetRepository;
|
215 |
private PartnerTargetRepository partnerTargetRepository;
|
| 207 |
|
216 |
|
| 208 |
@Autowired
|
217 |
@Autowired
|
| 209 |
@Qualifier(value = "googleMailSender")
|
218 |
@Qualifier(value = "googleMailSender")
|
| 210 |
private JavaMailSender googleMailSender;
|
219 |
private JavaMailSender googleMailSender;
|
| Line 606... |
Line 615... |
| 606 |
this.sendMailWithAttachmentsForPartners(fofoIdsAndCustomRetailer.get(fofoId).getEmail(), message, subject,
|
615 |
this.sendMailWithAttachmentsForPartners(fofoIdsAndCustomRetailer.get(fofoId).getEmail(), message, subject,
|
| 607 |
is);
|
616 |
is);
|
| 608 |
|
617 |
|
| 609 |
}
|
618 |
}
|
| 610 |
}
|
619 |
}
|
| - |
|
620 |
|
| - |
|
621 |
public void moveImeisToPriceDropImeis() throws Exception{
|
| - |
|
622 |
List<PriceDrop> priceDrops = priceDropRepository.selectAll();
|
| - |
|
623 |
for(PriceDrop priceDrop : priceDrops) {
|
| - |
|
624 |
priceDropService.priceDropStatus(priceDrop.getId());
|
| - |
|
625 |
}
|
| - |
|
626 |
}
|
| 611 |
|
627 |
|
| 612 |
}
|
628 |
}
|