Subversion Repositories SmartDukaan

Rev

Rev 8641 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8641 Rev 8658
Line 45... Line 45...
45
			}
45
			}
46
 
46
 
47
			SaholicAPI saholicAPI =  new SaholicAPI();
47
			SaholicAPI saholicAPI =  new SaholicAPI();
48
			DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
48
			DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
49
			Date date = new Date();
49
			Date date = new Date();
50
			Random rand = new Random();
-
 
51
			//System.out.println(dateFormat.format(date));
-
 
52
			saholicAPI.setCreateDate(dateFormat.format(date));
50
			saholicAPI.setCreateDate(dateFormat.format(date));
53
			saholicAPI.setFeedIdentifier(Math.abs(rand.nextInt()));
51
			saholicAPI.setFeedIdentifier(date.getTime());
54
			List<Price> priceList = saholicAPI.getPrice();
52
			List<Price> priceList = saholicAPI.getPrice();
55
			if(items.size() > 0){
53
			if(items.size() > 0){
56
				for(Item item : items){
54
				for(Item item : items){
57
					Price price = new Price();
55
					Price price = new Price();
58
					price.setSKU(item.getId());
56
					price.setSKU(item.getId());