| Line 72... |
Line 72... |
| 72 |
import com.spice.profitmandi.service.offers.OfferService;
|
72 |
import com.spice.profitmandi.service.offers.OfferService;
|
| 73 |
import com.spice.profitmandi.service.offers.PartnerCriteria;
|
73 |
import com.spice.profitmandi.service.offers.PartnerCriteria;
|
| 74 |
import com.spice.profitmandi.service.order.OrderService;
|
74 |
import com.spice.profitmandi.service.order.OrderService;
|
| 75 |
import com.spice.profitmandi.service.pricing.PriceDropService;
|
75 |
import com.spice.profitmandi.service.pricing.PriceDropService;
|
| 76 |
import com.spice.profitmandi.service.scheme.SchemeService;
|
76 |
import com.spice.profitmandi.service.scheme.SchemeService;
|
| - |
|
77 |
import com.spice.profitmandi.service.transaction.SDCreditService;
|
| 77 |
import com.spice.profitmandi.service.transaction.TransactionService;
|
78 |
import com.spice.profitmandi.service.transaction.TransactionService;
|
| 78 |
import com.spice.profitmandi.service.transaction.invoicing.InvoiceService;
|
79 |
import com.spice.profitmandi.service.transaction.invoicing.InvoiceService;
|
| 79 |
import com.spice.profitmandi.service.user.RetailerService;
|
80 |
import com.spice.profitmandi.service.user.RetailerService;
|
| 80 |
import com.spice.profitmandi.service.wallet.CommonPaymentService;
|
81 |
import com.spice.profitmandi.service.wallet.CommonPaymentService;
|
| 81 |
import com.spice.profitmandi.service.wallet.WalletService;
|
82 |
import com.spice.profitmandi.service.wallet.WalletService;
|
| Line 1209... |
Line 1210... |
| 1209 |
genericRepository.delete(uwh);
|
1210 |
genericRepository.delete(uwh);
|
| 1210 |
}
|
1211 |
}
|
| 1211 |
|
1212 |
|
| 1212 |
}
|
1213 |
}
|
| 1213 |
|
1214 |
|
| - |
|
1215 |
@Autowired
|
| - |
|
1216 |
SDCreditService sdCreditService;
|
| - |
|
1217 |
|
| - |
|
1218 |
@Autowired
|
| - |
|
1219 |
SDCreditRequirementRepository sdCreditRequirementRepository;
|
| - |
|
1220 |
|
| - |
|
1221 |
public void migrateLimit() throws ProfitMandiBusinessException {
|
| - |
|
1222 |
List<SDCreditRequirement> sdCreditRequirements = sdCreditRequirementRepository.selectAll();
|
| - |
|
1223 |
for (SDCreditRequirement sdCreditRequirement : sdCreditRequirements) {
|
| - |
|
1224 |
sdCreditService.updateLimitForHardLimit(sdCreditRequirement);
|
| - |
|
1225 |
}
|
| - |
|
1226 |
|
| - |
|
1227 |
}
|
| - |
|
1228 |
|
| 1214 |
private class SioTuple {
|
1229 |
private class SioTuple {
|
| 1215 |
int inventoryId;
|
1230 |
int inventoryId;
|
| 1216 |
SchemeType schemeType;
|
1231 |
SchemeType schemeType;
|
| 1217 |
|
1232 |
|
| 1218 |
public SioTuple(int inventoryItemId, SchemeType schemeType) {
|
1233 |
public SioTuple(int inventoryItemId, SchemeType schemeType) {
|