| Line 167... |
Line 167... |
| 167 |
+"<td>" + item.getId() + "</td>"
|
167 |
+"<td>" + item.getId() + "</td>"
|
| 168 |
+"<td>" + entry.getSellingPrice() + "</td>"
|
168 |
+"<td>" + entry.getSellingPrice() + "</td>"
|
| 169 |
+"</tr>");
|
169 |
+"</tr>");
|
| 170 |
try {
|
170 |
try {
|
| 171 |
feedResponseMap.put(entry.getItem_id(), fkPricing.updatePrice(flipkartItemsMap.get(entry.getItem_id()).getSkuAtFlipkart(), entry.getSellingPrice()+""));
|
171 |
feedResponseMap.put(entry.getItem_id(), fkPricing.updatePrice(flipkartItemsMap.get(entry.getItem_id()).getSkuAtFlipkart(), entry.getSellingPrice()+""));
|
| 172 |
} catch (Exception e) {
|
172 |
} catch (JSONException e) {
|
| - |
|
173 |
e.printStackTrace();
|
| 173 |
try {
|
174 |
try {
|
| 174 |
mailer.sendSSLMessage(errorSendTo, "Error While Flipkart Pricing Updation Item Id: "+ entry.getItem_id(), "Due to Json Exception in Flipkart Pricing Panel", emailFromAddress, password,new ArrayList<File>());
|
175 |
mailer.sendSSLMessage(errorSendTo, "Error While Flipkart Pricing Updation Item Id: "+ entry.getItem_id(), "Due to Json Exception in Flipkart Pricing Panel", emailFromAddress, password,new ArrayList<File>());
|
| 175 |
}
|
176 |
}
|
| 176 |
catch (MessagingException ex) {
|
177 |
catch (MessagingException ex) {
|
| 177 |
ex.printStackTrace();
|
178 |
ex.printStackTrace();
|
| 178 |
}
|
179 |
}
|
| - |
|
180 |
} catch (IOException e) {
|
| - |
|
181 |
e.printStackTrace();
|
| - |
|
182 |
try{
|
| - |
|
183 |
mailer.sendSSLMessage(errorSendTo, "Error While Flipkart Pricing Updation Item Id: "+ entry.getItem_id(), "Due to IO Exception in Flipkart Pricing Panel", emailFromAddress, password,new ArrayList<File>());
|
| - |
|
184 |
}
|
| - |
|
185 |
catch (MessagingException ex) {
|
| - |
|
186 |
ex.printStackTrace();
|
| - |
|
187 |
}
|
| 179 |
}
|
188 |
}
|
| 180 |
/*jsonRequest.append("{\"skuId\":"+"\""+flipkartItemsMap.get(entry.getItem_id()).getSkuAtFlipkart()+
|
189 |
/*jsonRequest.append("{\"skuId\":"+"\""+flipkartItemsMap.get(entry.getItem_id()).getSkuAtFlipkart()+
|
| 181 |
"\","+"\"attributeValues\""+":"+
|
190 |
"\","+"\"attributeValues\""+":"+
|
| 182 |
"{\"selling_price\""+":"+"\""+ new Double(entry.getSellingPrice()).intValue()+"\""+"},"+"\"listingValidations\":" +
|
191 |
"{\"selling_price\""+":"+"\""+ new Double(entry.getSellingPrice()).intValue()+"\""+"},"+"\"listingValidations\":" +
|
| 183 |
"{\"PRICE_ERROR_CHECK\":" +
|
192 |
"{\"PRICE_ERROR_CHECK\":" +
|