| Line 880... |
Line 880... |
| 880 |
ffdr.setFeature(doc.getString("feature_s"));
|
880 |
ffdr.setFeature(doc.getString("feature_s"));
|
| 881 |
} catch (Exception e) {
|
881 |
} catch (Exception e) {
|
| 882 |
ffdr.setFeature(null);
|
882 |
ffdr.setFeature(null);
|
| 883 |
}
|
883 |
}
|
| 884 |
ffdr.setBrand(doc.getJSONArray("brand_ss").getString(0));
|
884 |
ffdr.setBrand(doc.getJSONArray("brand_ss").getString(0));
|
| - |
|
885 |
|
| 885 |
if (doc.has("_childDocuments_")) {
|
886 |
if (doc.has("_childDocuments_")) {
|
| 886 |
for (int j = 0; j < doc.getJSONArray("_childDocuments_").length(); j++) {
|
887 |
for (int j = 0; j < doc.getJSONArray("_childDocuments_").length(); j++) {
|
| 887 |
JSONObject childItem = doc.getJSONArray("_childDocuments_").getJSONObject(j);
|
888 |
JSONObject childItem = doc.getJSONArray("_childDocuments_").getJSONObject(j);
|
| 888 |
int itemId = childItem.getInt("itemId_i");
|
889 |
int itemId = childItem.getInt("itemId_i");
|
| - |
|
890 |
ffdr.setIsSmartPhone(itemRepository.selectById(itemId).isSmartPhone());
|
| 889 |
float sellingPrice = (float) childItem.getDouble("sellingPrice_f");
|
891 |
float sellingPrice = (float) childItem.getDouble("sellingPrice_f");
|
| 890 |
if (fofoAvailabilityInfoMap.containsKey(itemId)) {
|
892 |
if (fofoAvailabilityInfoMap.containsKey(itemId)) {
|
| 891 |
if (fofoAvailabilityInfoMap.get(itemId).getSellingPrice() > sellingPrice) {
|
893 |
if (fofoAvailabilityInfoMap.get(itemId).getSellingPrice() > sellingPrice) {
|
| 892 |
fofoAvailabilityInfoMap.get(itemId).setSellingPrice(sellingPrice);
|
894 |
fofoAvailabilityInfoMap.get(itemId).setSellingPrice(sellingPrice);
|
| 893 |
fofoAvailabilityInfoMap.get(itemId).setMop((float) childItem.getDouble("mop_f"));
|
895 |
fofoAvailabilityInfoMap.get(itemId).setMop((float) childItem.getDouble("mop_f"));
|