修复原材料防错记录修改长度履历时修改类型不对问题

tags/yfai-pcn-ext-v2.3
yxw 8 months ago
parent b3c75bb50a
commit add6da8105

@ -147,7 +147,7 @@ public class MesCutRawErrorProofingService implements IMesCutRawErrorProofingSer
new Object[]{CommonEnumUtil.TRUE_OR_FALSE.TRUE.getValue(),
CommonEnumUtil.TRUE_OR_FALSE.FALSE.getValue(), model.getOrganizeCode(), model.getCutWorkOrderNo()},
new String[]{MesPcnExtConstWords.WORK_ORDER_STATUS, MesPcnExtConstWords.MODIFY_USER, MesPcnExtConstWords.MODIFY_DATE_TIME, MesPcnExtConstWords.SYSTEM_SYNC_STATUS},
new Object[]{MesExtEnumUtil.CUT_ORDER_STATUS.CHECKED_RAW.getValue(), model.getUserName(), TimeTool.getNowTime(true)});
new Object[]{MesExtEnumUtil.CUT_ORDER_STATUS.CHECKED_RAW.getValue(), model.getUserName(), TimeTool.getNowTime(true), CommonEnumUtil.TRUE_OR_FALSE.FALSE.getValue()});
result.setIsReset(CommonEnumUtil.VALID);
} else result.setIsReset(CommonEnumUtil.FALSE);
@ -160,7 +160,7 @@ public class MesCutRawErrorProofingService implements IMesCutRawErrorProofingSer
modifyRawLengthRecord.setSubLength(materialSnDb.getSurplusLength());
modifyRawLengthRecord.setSn(model.getSn());
modifyRawLengthRecord.setCutWorkOrderNo(model.getCutWorkOrderNo());
modifyRawLengthRecord.setType(MesExtEnumUtil.CUT_RAW_LENGTH_TYPE.OTHER.getValue());
modifyRawLengthRecord.setType(MesExtEnumUtil.CUT_RAW_LENGTH_TYPE.ORDER.getValue());
modifyRawLengthRecord.setOrganizeCode(model.getOrganizeCode());
cutModifyRawLengthRecordRepository.save(modifyRawLengthRecord);

Loading…
Cancel
Save