Browse Source

Merge remote-tracking branch 'origin/dev' into dev

pull/11/head
汤建军 10 months ago
parent
commit
819eddd843
  1. 12
      blade-service/logpm-factory-data/logpm-factory-data-zbom/src/main/java/com/logpm/factorydata/zbom/mq/ZbomNodeDataPushListener.java

12
blade-service/logpm-factory-data/logpm-factory-data-zbom/src/main/java/com/logpm/factorydata/zbom/mq/ZbomNodeDataPushListener.java

@ -77,6 +77,7 @@ public class ZbomNodeDataPushListener {
}
}
}
// 构建参数对象
List<NodeConfirmParamDTO> nodeConfirmParams = initParam(msgEntries, packageCodeList);
try {
@ -107,8 +108,12 @@ public class ZbomNodeDataPushListener {
.build();
// 推送成功
nodePushService.save(pushEntity);
// 修改订单包件表的签收状态
orderPackageService.updateSignForStatus(packageCodeList);
String node = msgEntries.getStr("node");
NodeEnums nodeEnums = EnumUtil.fromString(NodeEnums.class, node);
if (ObjectUtil.equal(nodeEnums, NodeEnums.CLERK_REVIEW)) {
// 修改订单包件表的签收状态
orderPackageService.updateSignForStatus(packageCodeList);
}
}
}
}
@ -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());
}
}

Loading…
Cancel
Save