|
|
|
@ -734,28 +734,28 @@ public class OrderCreateHandleServiceImpl implements OrderCreateHandleService { |
|
|
|
|
for (Object o : array) { |
|
|
|
|
JSONObject object1 = (JSONObject) o; |
|
|
|
|
Map<String, Object> contentMap = new LinkedHashMap<>(); |
|
|
|
|
if (!object1.getString("productId").equals("")) { |
|
|
|
|
if (object1.getString("productId") != null && !object1.getString("productId").equals("")) { |
|
|
|
|
contentMap.put("productId", object1.getString("productId")); |
|
|
|
|
} |
|
|
|
|
if (!object1.getString("cupSize").equals("")) { |
|
|
|
|
if (object1.getString("cupSize") != null && !object1.getString("cupSize").equals("")) { |
|
|
|
|
contentMap.put("cupSize", object1.getString("cupSize")); |
|
|
|
|
} |
|
|
|
|
if (!object1.getString("temperature").equals("")) { |
|
|
|
|
if (object1.getString("temperature") != null && !object1.getString("temperature").equals("")) { |
|
|
|
|
contentMap.put("temperature", object1.getString("temperature")); |
|
|
|
|
} |
|
|
|
|
if (!object1.getString("cream").equals("")) { |
|
|
|
|
if (object1.getString("cream") != null && !object1.getString("cream").equals("")) { |
|
|
|
|
contentMap.put("cream", object1.getString("cream")); |
|
|
|
|
} |
|
|
|
|
if (!object1.getString("espresso").equals("")) { |
|
|
|
|
if (object1.getString("espresso") != null && !object1.getString("espresso").equals("")) { |
|
|
|
|
contentMap.put("espresso", object1.getString("espresso")); |
|
|
|
|
} |
|
|
|
|
if (!object1.getString("milk").equals("")) { |
|
|
|
|
if (object1.getString("milk") != null && !object1.getString("milk").equals("")) { |
|
|
|
|
contentMap.put("milk", object1.getString("milk")); |
|
|
|
|
} |
|
|
|
|
if (!object1.getString("milkBubble").equals("")) { |
|
|
|
|
if (object1.getString("milkBubble") != null && !object1.getString("milkBubble").equals("")) { |
|
|
|
|
contentMap.put("milkBubble", object1.getString("milkBubble")); |
|
|
|
|
} |
|
|
|
|
if (!"".equals(object1.getString("num"))) { |
|
|
|
|
if (object1.getString("num") != null && !"".equals(object1.getString("num"))) { |
|
|
|
|
contentMap.put("num", object1.getString("num")); |
|
|
|
|
} |
|
|
|
|
List.add(JSON.toJSONString(contentMap)); |
|
|
|
|