Subversion Repositories SmartDukaan

Rev

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

Rev 7709 Rev 7710
Line 269... Line 269...
269
            	}
269
            	}
270
            	if(st.equals(status.ACTIVE)){
270
            	if(st.equals(status.ACTIVE)){
271
            		activeItems.add(ite.getId());
271
            		activeItems.add(ite.getId());
272
            	}
272
            	}
273
            }
273
            }
-
 
274
            try {
-
 
275
            	//Generate prices and availability data for amazon
-
 
276
            	AmazonSCDataGenerator.generatePricesAndAvailability(items);
-
 
277
            } catch (Exception e) {
-
 
278
            	log.info("Could not generate Amazon prices and availability", e);
274
            
279
            }
275
            //ProductListGenerator.updatePriceForEntity(Long.parseLong(ENTITY_ID), items.get(0).getSellingPrice(), items.get(0).getMrp());
280
            //ProductListGenerator.updatePriceForEntity(Long.parseLong(ENTITY_ID), items.get(0).getSellingPrice(), items.get(0).getMrp());
276
        } else {
281
        } else {
277
        	log.info("Before getting active items.");
282
        	log.info("Before getting active items.");
278
            items = client.getAllItemsByStatus(status.ACTIVE);
283
            items = client.getAllItemsByStatus(status.ACTIVE);
279
            for (Item item : items) {
284
            for (Item item : items) {
Line 284... Line 289...
284
            log.info("Before getting paused items.");
289
            log.info("Before getting paused items.");
285
            items.addAll(client.getAllItemsByStatus(status.PAUSED));
290
            items.addAll(client.getAllItemsByStatus(status.PAUSED));
286
            // Clean up the data from the solr directories.
291
            // Clean up the data from the solr directories.
287
            log.info("Before removing old resources.");
292
            log.info("Before removing old resources.");
288
            removeOldResources();
293
            removeOldResources();
289
            if(Calendar.getInstance().get(Calendar.AM_PM)==Calendar.AM )
-
 
290
            try {
-
 
291
            	//Generate prices and availability data for amazon
-
 
292
            	AmazonSCDataGenerator.generatePricesAndAvailability(items);
-
 
293
            } catch (Exception e) {
-
 
294
            	log.info("Could not generate Amazon prices and availability", e);
-
 
295
            }
-
 
296
 
-
 
297
        }
294
        }
298
 
295
 
299
/*        if (GENERATION_TYPE.equals(GENERATION_TYPE_INCREMENTAL)) {
296
/*        if (GENERATION_TYPE.equals(GENERATION_TYPE_INCREMENTAL)) {
300
        }
297
        }
301
*/
298
*/