Subversion Repositories SmartDukaan

Rev

Rev 30616 | Rev 30620 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 30616 Rev 30618
Line 1070... Line 1070...
1070
						//Rejections can be ignored
1070
						//Rejections can be ignored
1071
					}
1071
					}
1072
				} else {
1072
				} else {
1073
					if (entry.getValue().getStatus().equals(PriceDropImeiStatus.REJECTED)) {
1073
					if (entry.getValue().getStatus().equals(PriceDropImeiStatus.REJECTED)) {
1074
						LOGGER.info("Valid but rejected imeis should be retried, marked pending --- {}", imei);
1074
						LOGGER.info("Valid but rejected imeis should be retried, marked pending --- {}", imei);
1075
						//entry.getValue().setStatus(PriceDropImeiStatus.PENDING);
1075
						entry.getValue().setStatus(PriceDropImeiStatus.PENDING);
1076
					}
1076
					}
1077
				}
1077
				}
1078
			}
1078
			}
1079
 
1079
 
1080
			for (Map.Entry<String, ImeiDropSummaryModel> entry : actualMap.entrySet()) {
1080
			for (Map.Entry<String, ImeiDropSummaryModel> entry : actualMap.entrySet()) {
Line 1086... Line 1086...
1086
					priceDropIMEI.setPriceDropId(priceDropId);
1086
					priceDropIMEI.setPriceDropId(priceDropId);
1087
					priceDropIMEI.setStatus(PriceDropImeiStatus.PENDING);
1087
					priceDropIMEI.setStatus(PriceDropImeiStatus.PENDING);
1088
					priceDropIMEI.setImei(imei);
1088
					priceDropIMEI.setImei(imei);
1089
					priceDropIMEI.setPartnerId(imeiDropSummaryModel.getRetailerId());
1089
					priceDropIMEI.setPartnerId(imeiDropSummaryModel.getRetailerId());
1090
					priceDropIMEI.setUpdateTimestamp(LocalDateTime.now());
1090
					priceDropIMEI.setUpdateTimestamp(LocalDateTime.now());
1091
					//priceDropIMEIRepository.persist(priceDropIMEI);
1091
					priceDropIMEIRepository.persist(priceDropIMEI);
1092
					LOGGER.info("These imeis are added and were missing earlier --- {}", imei);
1092
					LOGGER.info("These imeis are added and were missing earlier --- {}", imei);
1093
 
1093
 
1094
				}
1094
				}
1095
			}
1095
			}
1096
 
1096