| Line 22... |
Line 22... |
| 22 |
ActivatedImeiRepository activatedImeiRepository;
|
22 |
ActivatedImeiRepository activatedImeiRepository;
|
| 23 |
@Autowired
|
23 |
@Autowired
|
| 24 |
CheckOppoWarrantyTask checkOppoWarrantyTask;
|
24 |
CheckOppoWarrantyTask checkOppoWarrantyTask;
|
| 25 |
|
25 |
|
| 26 |
public void updateActivationDate(List<String> imeis) throws Exception {
|
26 |
public void updateActivationDate(List<String> imeis) throws Exception {
|
| - |
|
27 |
//System.setProperty("os.arch", "arm");
|
| 27 |
Map<String, LocalDate> imeisDateMap = checkOppoWarrantyTask.checkWarranty(imeis);
|
28 |
Map<String, LocalDate> imeisDateMap = checkOppoWarrantyTask.checkWarranty(imeis);
|
| 28 |
List<String> foundImeis = new ArrayList<>();
|
29 |
List<String> foundImeis = new ArrayList<>();
|
| 29 |
imeisDateMap.entrySet().forEach(y -> {
|
30 |
imeisDateMap.entrySet().forEach(y -> {
|
| 30 |
foundImeis.add(y.getKey());
|
31 |
foundImeis.add(y.getKey());
|
| 31 |
System.out.println("Serial Number " + y.getKey() + "Date " + y.getValue());
|
32 |
System.out.println("Serial Number " + y.getKey() + "Date " + y.getValue());
|