package com.qianwen.smartman.modules.cps.convert; import java.util.ArrayList; import java.util.List; import com.qianwen.smartman.modules.cps.entity.ProductionCraftProcessFile; import com.qianwen.smartman.modules.cps.vo.ProductionCraftProcessFileVO; /* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/cps/convert/ProductionCraftProcessFileConvertImpl.class */ public class ProductionCraftProcessFileConvertImpl implements ProductionCraftProcessFileConvert { @Override // org.springblade.modules.cps.convert.ProductionCraftProcessFileConvert public ProductionCraftProcessFileVO convert(ProductionCraftProcessFile productionCraftProcessFile) { if (productionCraftProcessFile == null) { return null; } ProductionCraftProcessFileVO productionCraftProcessFileVO = new ProductionCraftProcessFileVO(); productionCraftProcessFileVO.setFileName(productionCraftProcessFile.getFileName()); productionCraftProcessFileVO.setObjectKey(productionCraftProcessFile.getObjectKey()); productionCraftProcessFileVO.setContentType(productionCraftProcessFile.getContentType()); productionCraftProcessFileVO.setLink(productionCraftProcessFile.getLink()); productionCraftProcessFileVO.setFileSize(productionCraftProcessFile.getFileSize()); productionCraftProcessFileVO.setUploadTime(productionCraftProcessFile.getUploadTime()); productionCraftProcessFileVO.setId(productionCraftProcessFile.getId()); productionCraftProcessFileVO.setVersionProcessId(productionCraftProcessFile.getVersionProcessId()); return productionCraftProcessFileVO; } @Override // org.springblade.modules.cps.convert.ProductionCraftProcessFileConvert public ProductionCraftProcessFile convert(ProductionCraftProcessFileVO productionCraftProcessFileVO) { if (productionCraftProcessFileVO == null) { return null; } ProductionCraftProcessFile productionCraftProcessFile = new ProductionCraftProcessFile(); productionCraftProcessFile.setId(productionCraftProcessFileVO.getId()); productionCraftProcessFile.setVersionProcessId(productionCraftProcessFileVO.getVersionProcessId()); productionCraftProcessFile.setFileName(productionCraftProcessFileVO.getFileName()); productionCraftProcessFile.setObjectKey(productionCraftProcessFileVO.getObjectKey()); productionCraftProcessFile.setContentType(productionCraftProcessFileVO.getContentType()); productionCraftProcessFile.setLink(productionCraftProcessFileVO.getLink()); productionCraftProcessFile.setFileSize(productionCraftProcessFileVO.getFileSize()); productionCraftProcessFile.setUploadTime(productionCraftProcessFileVO.getUploadTime()); return productionCraftProcessFile; } @Override // org.springblade.modules.cps.convert.ProductionCraftProcessFileConvert public List convert(List list) { if (list == null) { return null; } List list1 = new ArrayList<>(list.size()); for (ProductionCraftProcessFile productionCraftProcessFile : list) { list1.add(convert(productionCraftProcessFile)); } return list1; } }