package com.qianwen.smartman.modules.fms.convert; import java.util.ArrayList; import java.util.List; import com.qianwen.smartman.modules.fms.entity.FmsInstructionRecord; import com.qianwen.smartman.modules.fms.vo.FmsInstructionRecordVO; /* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/fms/convert/FmsInstructionRecordConvertImpl.class */ public class FmsInstructionRecordConvertImpl implements FmsInstructionRecordConvert { @Override // org.springblade.modules.fms.convert.FmsInstructionRecordConvert public FmsInstructionRecordVO convert(FmsInstructionRecord fmsInstructionRecord) { if (fmsInstructionRecord == null) { return null; } FmsInstructionRecordVO fmsInstructionRecordVO = new FmsInstructionRecordVO(); fmsInstructionRecordVO.setTenantId(fmsInstructionRecord.getTenantId()); fmsInstructionRecordVO.setOrderCode(fmsInstructionRecord.getOrderCode()); fmsInstructionRecordVO.setProcessCode(fmsInstructionRecord.getProcessCode()); fmsInstructionRecordVO.setState(fmsInstructionRecord.getState()); fmsInstructionRecordVO.setStartPosition(fmsInstructionRecord.getStartPosition()); fmsInstructionRecordVO.setStartBench(fmsInstructionRecord.getStartBench()); fmsInstructionRecordVO.setEndPosition(fmsInstructionRecord.getEndPosition()); fmsInstructionRecordVO.setEndBench(fmsInstructionRecord.getEndBench()); fmsInstructionRecordVO.setTrayCode(fmsInstructionRecord.getTrayCode()); fmsInstructionRecordVO.setProgramNo(fmsInstructionRecord.getProgramNo()); fmsInstructionRecordVO.setProgramOffset(fmsInstructionRecord.getProgramOffset()); fmsInstructionRecordVO.setSignalState(fmsInstructionRecord.getSignalState()); fmsInstructionRecordVO.setAbnormalReason(fmsInstructionRecord.getAbnormalReason()); fmsInstructionRecordVO.setLog(fmsInstructionRecord.getLog()); fmsInstructionRecordVO.setLastLoad(fmsInstructionRecord.getLastLoad()); fmsInstructionRecordVO.setChangeModel(fmsInstructionRecord.getChangeModel()); fmsInstructionRecordVO.setId(fmsInstructionRecord.getId()); fmsInstructionRecordVO.setStatus(fmsInstructionRecord.getStatus()); fmsInstructionRecordVO.setCreateTime(fmsInstructionRecord.getCreateTime()); fmsInstructionRecordVO.setUpdateTime(fmsInstructionRecord.getUpdateTime()); return fmsInstructionRecordVO; } @Override // org.springblade.modules.fms.convert.FmsInstructionRecordConvert public FmsInstructionRecord convert(FmsInstructionRecordVO fmsInstructionRecordVO) { if (fmsInstructionRecordVO == null) { return null; } FmsInstructionRecord fmsInstructionRecord = new FmsInstructionRecord(); fmsInstructionRecord.setId(fmsInstructionRecordVO.getId()); fmsInstructionRecord.setCreateTime(fmsInstructionRecordVO.getCreateTime()); fmsInstructionRecord.setUpdateTime(fmsInstructionRecordVO.getUpdateTime()); fmsInstructionRecord.setStatus(fmsInstructionRecordVO.getStatus()); fmsInstructionRecord.setTenantId(fmsInstructionRecordVO.getTenantId()); fmsInstructionRecord.setOrderCode(fmsInstructionRecordVO.getOrderCode()); fmsInstructionRecord.setProcessCode(fmsInstructionRecordVO.getProcessCode()); fmsInstructionRecord.setState(fmsInstructionRecordVO.getState()); fmsInstructionRecord.setStartPosition(fmsInstructionRecordVO.getStartPosition()); fmsInstructionRecord.setStartBench(fmsInstructionRecordVO.getStartBench()); fmsInstructionRecord.setEndPosition(fmsInstructionRecordVO.getEndPosition()); fmsInstructionRecord.setEndBench(fmsInstructionRecordVO.getEndBench()); fmsInstructionRecord.setTrayCode(fmsInstructionRecordVO.getTrayCode()); fmsInstructionRecord.setProgramNo(fmsInstructionRecordVO.getProgramNo()); fmsInstructionRecord.setProgramOffset(fmsInstructionRecordVO.getProgramOffset()); fmsInstructionRecord.setSignalState(fmsInstructionRecordVO.getSignalState()); fmsInstructionRecord.setAbnormalReason(fmsInstructionRecordVO.getAbnormalReason()); fmsInstructionRecord.setLog(fmsInstructionRecordVO.getLog()); fmsInstructionRecord.setLastLoad(fmsInstructionRecordVO.getLastLoad()); fmsInstructionRecord.setChangeModel(fmsInstructionRecordVO.getChangeModel()); return fmsInstructionRecord; } @Override // org.springblade.modules.fms.convert.FmsInstructionRecordConvert public List convert(List list) { if (list == null) { return null; } List list1 = new ArrayList<>(list.size()); for (FmsInstructionRecord fmsInstructionRecord : list) { list1.add(convert(fmsInstructionRecord)); } return list1; } }