| Line 73... |
Line 73... |
| 73 |
import com.spice.profitmandi.dao.entity.dtr.NotificationCampaign;
|
73 |
import com.spice.profitmandi.dao.entity.dtr.NotificationCampaign;
|
| 74 |
import com.spice.profitmandi.dao.entity.dtr.PushNotifications;
|
74 |
import com.spice.profitmandi.dao.entity.dtr.PushNotifications;
|
| 75 |
import com.spice.profitmandi.dao.entity.dtr.RechargeProvider;
|
75 |
import com.spice.profitmandi.dao.entity.dtr.RechargeProvider;
|
| 76 |
import com.spice.profitmandi.dao.entity.dtr.RechargeProviderCreditWalletHistory;
|
76 |
import com.spice.profitmandi.dao.entity.dtr.RechargeProviderCreditWalletHistory;
|
| 77 |
import com.spice.profitmandi.dao.entity.dtr.RechargeTransaction;
|
77 |
import com.spice.profitmandi.dao.entity.dtr.RechargeTransaction;
|
| - |
|
78 |
import com.spice.profitmandi.dao.entity.fofo.ActivatedImei;
|
| 78 |
import com.spice.profitmandi.dao.entity.fofo.ActivityType;
|
79 |
import com.spice.profitmandi.dao.entity.fofo.ActivityType;
|
| 79 |
import com.spice.profitmandi.dao.entity.fofo.CustomerAddress;
|
80 |
import com.spice.profitmandi.dao.entity.fofo.CustomerAddress;
|
| 80 |
import com.spice.profitmandi.dao.entity.fofo.FofoLineItem;
|
81 |
import com.spice.profitmandi.dao.entity.fofo.FofoLineItem;
|
| 81 |
import com.spice.profitmandi.dao.entity.fofo.FofoOrder;
|
82 |
import com.spice.profitmandi.dao.entity.fofo.FofoOrder;
|
| 82 |
import com.spice.profitmandi.dao.entity.fofo.FofoOrderItem;
|
83 |
import com.spice.profitmandi.dao.entity.fofo.FofoOrderItem;
|
| Line 124... |
Line 125... |
| 124 |
import com.spice.profitmandi.dao.repository.dtr.RechargeProviderRepository;
|
125 |
import com.spice.profitmandi.dao.repository.dtr.RechargeProviderRepository;
|
| 125 |
import com.spice.profitmandi.dao.repository.dtr.RechargeTransactionRepository;
|
126 |
import com.spice.profitmandi.dao.repository.dtr.RechargeTransactionRepository;
|
| 126 |
import com.spice.profitmandi.dao.repository.dtr.RetailerRegisteredAddressRepository;
|
127 |
import com.spice.profitmandi.dao.repository.dtr.RetailerRegisteredAddressRepository;
|
| 127 |
import com.spice.profitmandi.dao.repository.dtr.UserAccountRepository;
|
128 |
import com.spice.profitmandi.dao.repository.dtr.UserAccountRepository;
|
| 128 |
import com.spice.profitmandi.dao.repository.dtr.UserCampaignRepository;
|
129 |
import com.spice.profitmandi.dao.repository.dtr.UserCampaignRepository;
|
| - |
|
130 |
import com.spice.profitmandi.dao.repository.fofo.ActivatedImeiRepository;
|
| 129 |
import com.spice.profitmandi.dao.repository.fofo.CurrentInventorySnapshotRepository;
|
131 |
import com.spice.profitmandi.dao.repository.fofo.CurrentInventorySnapshotRepository;
|
| 130 |
import com.spice.profitmandi.dao.repository.fofo.CustomerAddressRepository;
|
132 |
import com.spice.profitmandi.dao.repository.fofo.CustomerAddressRepository;
|
| 131 |
import com.spice.profitmandi.dao.repository.fofo.FofoLineItemRepository;
|
133 |
import com.spice.profitmandi.dao.repository.fofo.FofoLineItemRepository;
|
| 132 |
import com.spice.profitmandi.dao.repository.fofo.FofoOrderItemRepository;
|
134 |
import com.spice.profitmandi.dao.repository.fofo.FofoOrderItemRepository;
|
| 133 |
import com.spice.profitmandi.dao.repository.fofo.FofoOrderRepository;
|
135 |
import com.spice.profitmandi.dao.repository.fofo.FofoOrderRepository;
|
| Line 144... |
Line 146... |
| 144 |
import com.spice.profitmandi.dao.repository.transaction.PriceDropRepository;
|
146 |
import com.spice.profitmandi.dao.repository.transaction.PriceDropRepository;
|
| 145 |
import com.spice.profitmandi.dao.repository.transaction.UserWalletHistoryRepository;
|
147 |
import com.spice.profitmandi.dao.repository.transaction.UserWalletHistoryRepository;
|
| 146 |
import com.spice.profitmandi.dao.repository.transaction.UserWalletRepository;
|
148 |
import com.spice.profitmandi.dao.repository.transaction.UserWalletRepository;
|
| 147 |
import com.spice.profitmandi.dao.repository.user.AddressRepository;
|
149 |
import com.spice.profitmandi.dao.repository.user.AddressRepository;
|
| 148 |
import com.spice.profitmandi.dao.repository.user.UserRepository;
|
150 |
import com.spice.profitmandi.dao.repository.user.UserRepository;
|
| 149 |
import com.spice.profitmandi.service.AuthService;
|
- |
|
| 150 |
import com.spice.profitmandi.service.NotificationService;
|
151 |
import com.spice.profitmandi.service.NotificationService;
|
| 151 |
import com.spice.profitmandi.service.PartnerInvestmentService;
|
152 |
import com.spice.profitmandi.service.PartnerInvestmentService;
|
| 152 |
import com.spice.profitmandi.service.integrations.toffee.ToffeeService;
|
153 |
import com.spice.profitmandi.service.integrations.toffee.ToffeeService;
|
| 153 |
import com.spice.profitmandi.service.inventory.InventoryService;
|
154 |
import com.spice.profitmandi.service.inventory.InventoryService;
|
| 154 |
import com.spice.profitmandi.service.order.OrderService;
|
155 |
import com.spice.profitmandi.service.order.OrderService;
|
| Line 176... |
Line 177... |
| 176 |
|
177 |
|
| 177 |
@Autowired
|
178 |
@Autowired
|
| 178 |
private PartnerTypeChangeService partnerTypeChangeService;
|
179 |
private PartnerTypeChangeService partnerTypeChangeService;
|
| 179 |
|
180 |
|
| 180 |
@Autowired
|
181 |
@Autowired
|
| - |
|
182 |
private ActivatedImeiRepository activatedImeiRepository;
|
| - |
|
183 |
|
| - |
|
184 |
@Autowired
|
| 181 |
private LeadRepository leadRepository;
|
185 |
private LeadRepository leadRepository;
|
| 182 |
|
186 |
|
| 183 |
@Autowired
|
187 |
@Autowired
|
| 184 |
private AuthRepository authRepository;
|
188 |
private AuthRepository authRepository;
|
| 185 |
|
189 |
|
| Line 2104... |
Line 2108... |
| 2104 |
}
|
2108 |
}
|
| 2105 |
}
|
2109 |
}
|
| 2106 |
|
2110 |
|
| 2107 |
}
|
2111 |
}
|
| 2108 |
|
2112 |
|
| - |
|
2113 |
/*public void checkPriceDrop() throws Exception {
|
| - |
|
2114 |
List<PriceDrop> priceDrops = priceDropRepository.selectAllIncomplete();
|
| - |
|
2115 |
for(PriceDrop pd : priceDrops) {
|
| - |
|
2116 |
List<PriceDropIMEI> priceDropIMEIs = priceDropIMEIRepository.selectByPriceDropId(pd.getId());
|
| - |
|
2117 |
List<String> approvedSerialNumbers = priceDropIMEIs.stream()
|
| - |
|
2118 |
.filter(x->x.getStatus().equals(PriceDropImeiStatus.APPROVED))
|
| - |
|
2119 |
.map(x->x.getImei()).collect(Collectors.toList());
|
| - |
|
2120 |
List<ActivatedImei> activatedImeis = activatedImeiRepository.selectBySerialNumbers(approvedSerialNumbers);
|
| - |
|
2121 |
activatedImeis.stream().forEach(x->x.get);
|
| - |
|
2122 |
}
|
| - |
|
2123 |
}*/
|
| - |
|
2124 |
|
| 2109 |
}
|
2125 |
}
|
| 2110 |
|
2126 |
|