jx pcn cell collect plc

tags/yfai-pcn-ext-v1.0
王杰 1 year ago
parent f639eb1789
commit b29fbdbb49

@ -50,7 +50,7 @@ public class SxThirdPartyPlcCollectProductDataHandler extends SxThirdPartyPlcCol
if (isRetry || null == filterChain) instanceFilterChain(); if (isRetry || null == filterChain) instanceFilterChain();
restoreStepResultData(plcCollectData); restoreOtherParams(plcCollectData);
super.doSubmit(); super.doSubmit();
@ -104,7 +104,7 @@ public class SxThirdPartyPlcCollectProductDataHandler extends SxThirdPartyPlcCol
isRetry = false; isRetry = false;
} }
private void restoreStepResultData(SxThirdPartyPlcCollectDataModel plcCollectData) { private void restoreOtherParams(SxThirdPartyPlcCollectDataModel plcCollectData) {
((Map<String, Object>) stepResult.getData()).remove(MesPcnExtConstWords.USER_INFO); ((Map<String, Object>) stepResult.getData()).remove(MesPcnExtConstWords.USER_INFO);
((Map<String, Object>) stepResult.getData()).remove(MesPcnExtConstWords.SERIAL_NUMBER); ((Map<String, Object>) stepResult.getData()).remove(MesPcnExtConstWords.SERIAL_NUMBER);
((Map<String, Object>) stepResult.getData()).remove(MesPcnExtConstWords.PRODUCT_SN); ((Map<String, Object>) stepResult.getData()).remove(MesPcnExtConstWords.PRODUCT_SN);
@ -119,6 +119,9 @@ public class SxThirdPartyPlcCollectProductDataHandler extends SxThirdPartyPlcCol
((Map<String, Object>) stepResult.getData()).put(MesPcnExtConstWords.WORK_ORDER_NO, plcCollectData.getWorkOrderNo()); ((Map<String, Object>) stepResult.getData()).put(MesPcnExtConstWords.WORK_ORDER_NO, plcCollectData.getWorkOrderNo());
((Map<String, Object>) stepResult.getData()).put(MesPcnExtConstWords.PART_NO, plcCollectData.getPartNo()); ((Map<String, Object>) stepResult.getData()).put(MesPcnExtConstWords.PART_NO, plcCollectData.getPartNo());
((Map<String, Object>) stepResult.getData()).put(MesPcnExtConstWords.PART_NAME_RDD, plcCollectData.getPartNameRdd()); ((Map<String, Object>) stepResult.getData()).put(MesPcnExtConstWords.PART_NAME_RDD, plcCollectData.getPartNameRdd());
if (this.plcCollectData.getTimeOut().compareTo(plcCollectData.getTimeOut()) != 0) this.plcCollectData.timeOut(plcCollectData.getTimeOut());
} }
private String[] getClearField() { private String[] getClearField() {

Loading…
Cancel
Save