package com.qianwen.smartman.modules.tpm.convert; import com.qianwen.smartman.modules.tpm.entity.DeviceMaterialRecord; import com.qianwen.smartman.modules.tpm.vo.MaterialVO; /* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/tpm/convert/MaterialRecordConvertImpl.class */ public class MaterialRecordConvertImpl implements MaterialRecordConvert { @Override // org.springblade.modules.tpm.convert.MaterialRecordConvert public MaterialVO convert(DeviceMaterialRecord deviceMaterialRecord) { if (deviceMaterialRecord == null) { return null; } MaterialVO materialVO = new MaterialVO(); materialVO.setId(deviceMaterialRecord.getId()); materialVO.setRecordId(deviceMaterialRecord.getRecordId()); materialVO.setMaterialName(deviceMaterialRecord.getMaterialName()); materialVO.setRecordNumber(deviceMaterialRecord.getRecordNumber()); return materialVO; } }