yangys
2024-03-29 410eed616ce86a76ecfbd272be0a4463ac54a517
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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;
    }
}