|
|
@ -120,14 +120,19 @@ public class OrderVerificationResultHandler { |
|
|
|
listener.showToast(displayMessage); |
|
|
|
} |
|
|
|
|
|
|
|
// 准备订单核销选择页信息 |
|
|
|
Map<String, Object> queryData = new HashMap<>(); |
|
|
|
queryData.put("type", verificationType); |
|
|
|
queryData.put("result", new ArrayList<>()); |
|
|
|
// 创建一个空的订单数据结构 |
|
|
|
Map<String, Object> emptyData = new HashMap<>(); |
|
|
|
Map<String, Object> data = new HashMap<>(); |
|
|
|
data.put("result", new ArrayList<>()); |
|
|
|
emptyData.put("data", data); |
|
|
|
|
|
|
|
LogManager.logInfo(TAG, "暂无可核销订单,准备跳转到订单验证页面: " + queryData.toString()); |
|
|
|
// 将空订单数据转为JSON字符串 |
|
|
|
Gson gson = new Gson(); |
|
|
|
String orderDataJson = gson.toJson(emptyData); |
|
|
|
|
|
|
|
LogManager.logInfo(TAG, "暂无可核销订单,准备跳转到订单验证页面"); |
|
|
|
if (listener != null) { |
|
|
|
listener.navigateToOrderSelectionPage(queryData); |
|
|
|
listener.navigateToOrderSelectionPage(orderDataJson, verificationType, null); |
|
|
|
} |
|
|
|
|
|
|
|
} else { |
|
|
|