Subversion Repositories SmartDukaan

Rev

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

Rev 11110 Rev 11122
Line 138... Line 138...
138
            scrapingObj.put("saholicRank",rank);
138
            scrapingObj.put("saholicRank",rank);
139
            if(rank==1 && totalSeller>1){
139
            if(rank==1 && totalSeller>1){
140
                scrapingObj.put("competitorSp",secondLowestSellerSp);
140
                scrapingObj.put("competitorSp",secondLowestSellerSp);
141
                scrapingObj.put("competitorOfferPrice",secondLowestSellerOfferPrice);
141
                scrapingObj.put("competitorOfferPrice",secondLowestSellerOfferPrice);
142
                scrapingObj.put("competitorInventory",secondLowestSellerInventory);
142
                scrapingObj.put("competitorInventory",secondLowestSellerInventory);
-
 
143
                scrapingObj.put("competitorName",secondLowestSellerName);
-
 
144
                scrapingObj.put("competitorType","Second Lowest Seller");
143
            }
145
            }
144
            else if (rank==1 && totalSeller==1){
146
            else if (rank==1 && totalSeller==1){
145
                scrapingObj.put("competitorSp","");
147
                scrapingObj.put("competitorSp","");
146
                scrapingObj.put("competitorOfferPrice","");
148
                scrapingObj.put("competitorOfferPrice","");
147
                scrapingObj.put("competitorInventory","");
149
                scrapingObj.put("competitorInventory","");
-
 
150
                scrapingObj.put("competitorName","");
-
 
151
                scrapingObj.put("competitorType","");
148
            }
152
            }
149
            else if (rank!=1 && totalSeller>0){
153
            else if (rank!=1 && totalSeller>0){
150
                scrapingObj.put("competitorSp",lowestSp);
154
                scrapingObj.put("competitorSp",lowestSp);
151
                scrapingObj.put("competitorOfferPrice",lowestOfferPrice);
155
                scrapingObj.put("competitorOfferPrice",lowestOfferPrice);
152
                scrapingObj.put("competitorInventory",otherInventory);
156
                scrapingObj.put("competitorInventory",otherInventory);
-
 
157
                scrapingObj.put("competitorName",lowestSellerName);
-
 
158
                scrapingObj.put("competitorType","Lowest Seller");
-
 
159
                
153
            }
160
            }
154
            scrapingObj.put("totalSeller", totalSeller);
161
            scrapingObj.put("totalSeller", totalSeller);
155
        }
162
        }
156
        return "item-details-json";
163
        return "item-details-json";
157
    }
164
    }