package com.qianwen.smartman.modules.cps.convert;
|
|
import java.util.ArrayList;
|
import java.util.List;
|
import com.qianwen.smartman.modules.cps.dto.CraftVersionDTO;
|
import com.qianwen.smartman.modules.cps.entity.ProductionCraftVersion;
|
import com.qianwen.smartman.modules.cps.vo.CraftVersionLineVO;
|
import com.qianwen.smartman.modules.cps.vo.ProductionCraftVersionVO;
|
|
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/cps/convert/ProductionCraftVersionConvertImpl.class */
|
public class ProductionCraftVersionConvertImpl implements ProductionCraftVersionConvert {
|
@Override // org.springblade.modules.cps.convert.ProductionCraftVersionConvert
|
public ProductionCraftVersionVO convert(ProductionCraftVersion productionCraftVersion) {
|
if (productionCraftVersion == null) {
|
return null;
|
}
|
ProductionCraftVersionVO productionCraftVersionVO = new ProductionCraftVersionVO();
|
productionCraftVersionVO.setName(productionCraftVersion.getName());
|
productionCraftVersionVO.setDescription(productionCraftVersion.getDescription());
|
productionCraftVersionVO.setEditionStatus(productionCraftVersion.getEditionStatus());
|
productionCraftVersionVO.setId(productionCraftVersion.getId());
|
productionCraftVersionVO.setCraftId(productionCraftVersion.getCraftId());
|
productionCraftVersionVO.setStatus(productionCraftVersion.getStatus());
|
return productionCraftVersionVO;
|
}
|
|
@Override // org.springblade.modules.cps.convert.ProductionCraftVersionConvert
|
public CraftVersionLineVO convert(CraftVersionDTO dto) {
|
if (dto == null) {
|
return null;
|
}
|
CraftVersionLineVO craftVersionLineVO = new CraftVersionLineVO();
|
craftVersionLineVO.setId(dto.getId());
|
craftVersionLineVO.setName(dto.getName());
|
craftVersionLineVO.setDescription(dto.getDescription());
|
craftVersionLineVO.setEditionStatus(dto.getEditionStatus());
|
craftVersionLineVO.setCreateUser(dto.getCreateUser());
|
craftVersionLineVO.setCreateTime(dto.getCreateTime());
|
craftVersionLineVO.setUpdateUser(dto.getUpdateUser());
|
craftVersionLineVO.setUpdateTime(dto.getUpdateTime());
|
craftVersionLineVO.setCraftId(dto.getCraftId());
|
return craftVersionLineVO;
|
}
|
|
@Override // org.springblade.modules.cps.convert.ProductionCraftVersionConvert
|
public ProductionCraftVersion convert(ProductionCraftVersionVO productionCraftVersionVO) {
|
if (productionCraftVersionVO == null) {
|
return null;
|
}
|
ProductionCraftVersion productionCraftVersion = new ProductionCraftVersion();
|
productionCraftVersion.setId(productionCraftVersionVO.getId());
|
productionCraftVersion.setStatus(productionCraftVersionVO.getStatus());
|
productionCraftVersion.setName(productionCraftVersionVO.getName());
|
productionCraftVersion.setDescription(productionCraftVersionVO.getDescription());
|
productionCraftVersion.setCraftId(productionCraftVersionVO.getCraftId());
|
productionCraftVersion.setEditionStatus(productionCraftVersionVO.getEditionStatus());
|
return productionCraftVersion;
|
}
|
|
@Override // org.springblade.modules.cps.convert.ProductionCraftVersionConvert
|
public List<ProductionCraftVersionVO> convert(List<ProductionCraftVersion> list) {
|
if (list == null) {
|
return null;
|
}
|
List<ProductionCraftVersionVO> list1 = new ArrayList<>(list.size());
|
for (ProductionCraftVersion productionCraftVersion : list) {
|
list1.add(convert(productionCraftVersion));
|
}
|
return list1;
|
}
|
}
|