jx pcn 采集plc数据 连续扫码 偶发采集异常问题处理

tags/yfai-pcn-ext-v1.0
王杰 1 year ago
parent 6cd5a92fe3
commit b624c3531f

@ -37,9 +37,11 @@ public class SxThirdPartyPlcCollectProductDataHandler extends SxThirdPartyPlcCol
@Override
public SxThirdPartyPlcCollectProductDataHandler doRetry(Object obj) {
if (isOpen) return this;
super.doRetry(obj);
if (isOpen) super.cancel();
if (!isOpen) super.cancel();
SxThirdPartyPlcCollectDataModel plcCollectData = (SxThirdPartyPlcCollectDataModel) obj;
@ -139,10 +141,14 @@ public class SxThirdPartyPlcCollectProductDataHandler extends SxThirdPartyPlcCol
}
private void doSendScanQueueNextExec() {
isOpen = false;
initStationRequestBean();
reqBean.getDataMap().put(MesPcnExtConstWords.RESULT, stepResult.isCompleted());
if (!StringUtils.isEmpty(stepResult.getMsg())) reqBean.getDataMap().put(MesPcnExtConstWords.INFO, stepResult.getMsg());
shippingDispatchService.doSendScanQueueNextExec(reqBean);
}
private void initStationRequestBean() {

Loading…
Cancel
Save