Subversion Repositories SmartDukaan

Rev

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

Rev 22580 Rev 22591
Line 124... Line 124...
124
			
124
			
125
			if(tagListings.isEmpty()){
125
			if(tagListings.isEmpty()){
126
				return tagListings;
126
				return tagListings;
127
			}
127
			}
128
			for(TagListing tagListing : tagListings){
128
			for(TagListing tagListing : tagListings){
129
				if(itemIdTagListing.get(tagListing.getItemId()).getSellingPrice() > tagListing.getSellingPrice()){
129
				if(!itemIdTagListing.containsKey(tagListing.getItemId()))
-
 
130
				{
130
					itemIdTagListing.put(tagListing.getItemId(), tagListing);
131
					itemIdTagListing.put(tagListing.getItemId(), tagListing);
-
 
132
				}else{
-
 
133
					if(itemIdTagListing.get(tagListing.getItemId()).getSellingPrice() > tagListing.getSellingPrice()){
-
 
134
						itemIdTagListing.put(tagListing.getItemId(), tagListing);
-
 
135
					}
131
				}
136
				}
132
			}
137
			}
133
		} catch (ProfitMandiBusinessException e) {
138
		} catch (ProfitMandiBusinessException e) {
134
			e.printStackTrace();
139
			e.printStackTrace();
135
		}
140
		}