Showing
1 changed file
with
1 additions
and
1 deletions
@@ -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 |
-
Please register or login to post a comment