Authored by wangnan9279

ufo

@@ -53,7 +53,7 @@ public class UfoProductIndexBaseService { @@ -53,7 +53,7 @@ public class UfoProductIndexBaseService {
53 productMap.put("product_name", MapUtils.getString(map, UfoProductIndexEsField.productName, "")); 53 productMap.put("product_name", MapUtils.getString(map, UfoProductIndexEsField.productName, ""));
54 productMap.put("default_images", MapUtils.getString(map, UfoProductIndexEsField.defaultImages, "")); 54 productMap.put("default_images", MapUtils.getString(map, UfoProductIndexEsField.defaultImages, ""));
55 Double price = MapUtils.getDouble(map, UfoProductIndexEsField.price); 55 Double price = MapUtils.getDouble(map, UfoProductIndexEsField.price);
56 - productMap.put("price", price == -1d ? null : price); 56 + productMap.put("price", price == null || price == -1d ? null : price);
57 return productMap; 57 return productMap;
58 } 58 }
59 59