|
|
|
@ -77,6 +77,7 @@ public class ZbomNodeDataPushListener {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 构建参数对象
|
|
|
|
|
List<NodeConfirmParamDTO> nodeConfirmParams = initParam(msgEntries, packageCodeList); |
|
|
|
|
try { |
|
|
|
@ -107,6 +108,9 @@ public class ZbomNodeDataPushListener {
|
|
|
|
|
.build(); |
|
|
|
|
// 推送成功
|
|
|
|
|
nodePushService.save(pushEntity); |
|
|
|
|
String node = msgEntries.getStr("node"); |
|
|
|
|
NodeEnums nodeEnums = EnumUtil.fromString(NodeEnums.class, node); |
|
|
|
|
if (ObjectUtil.equal(nodeEnums, NodeEnums.CLERK_REVIEW)) { |
|
|
|
|
// 修改订单包件表的签收状态
|
|
|
|
|
orderPackageService.updateSignForStatus(packageCodeList); |
|
|
|
|
} |
|
|
|
@ -114,6 +118,7 @@ public class ZbomNodeDataPushListener {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
// 处理推送不成功的异常情况
|
|
|
|
@ -145,7 +150,7 @@ public class ZbomNodeDataPushListener {
|
|
|
|
|
order.setAddress(entries.getStr("address")); |
|
|
|
|
// 如果是签收节点,需要判断是否为全部签收和部分签收
|
|
|
|
|
if (EnumUtil.equals(NodeEnums.CLERK_REVIEW, node)) { |
|
|
|
|
Integer signNumber = Convert.toInt(order.getRejectQty()); |
|
|
|
|
Integer signNumber = Convert.toInt(order.getSignQty()); |
|
|
|
|
// 查询当前未签收的数量与当前签收数量比较,如果未签收数较大,则是部分签收
|
|
|
|
|
String key = order.getDepartCode() + order.getPlatformOrderCode(); |
|
|
|
|
// 部分签收
|
|
|
|
@ -159,6 +164,7 @@ public class ZbomNodeDataPushListener {
|
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
order.setRejectQty(""); |
|
|
|
|
order.setSignQty(""); |
|
|
|
|
order.setNode(ZbomNodeMappingEnums.getZbomByNodeAndStatus(nodeEnums).getCode()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|