|
|
|
@ -184,6 +184,8 @@ public class DashboardPushTask { |
|
|
|
|
|
|
|
JsonNode sortingStations = rootNode.get("sortingStations"); |
|
|
|
|
|
|
|
String orderNo = rootNode.get("orderNo")!=null ? rootNode.get("orderNo").asText() : ""; |
|
|
|
|
|
|
|
// 处理返回的数据 |
|
|
|
for (JsonNode station : sortingStations) { |
|
|
|
String sortingStation = station.get("sortingStation").asText(); |
|
|
|
@ -193,6 +195,7 @@ public class DashboardPushTask { |
|
|
|
if (devCode.equals(sortingStation) && materials != null && materials.isArray()) { |
|
|
|
for (JsonNode material : materials) { |
|
|
|
Map<String, Object> item = convertWcsMaterialToPickingItem(material); |
|
|
|
item.put("orderNo", orderNo); // 添加订单号字段 |
|
|
|
stationList.add(item); |
|
|
|
} |
|
|
|
} |
|
|
|
@ -1426,7 +1429,7 @@ public class DashboardPushTask { |
|
|
|
|
|
|
|
// 解析resMsg |
|
|
|
String resMsg = rootNode.has("resMsg") ? rootNode.get("resMsg").asText() : ""; |
|
|
|
|
|
|
|
|
|
|
|
// 检查是否有真实异常(排除"无异常"的情况) |
|
|
|
if (resMsg != null && !resMsg.isEmpty() && !resMsg.equals("无异常")) { |
|
|
|
Map<String, Object> exception = parseExceptionMessage(resMsg); |
|
|
|
|