package com.qianwen.smartman.modules.andon.convert; import java.util.ArrayList; import java.util.List; import com.qianwen.smartman.modules.andon.entity.DeviceAndonType; import com.qianwen.smartman.modules.andon.vo.DeviceAndonTypeVO; /* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/andon/convert/DeviceAndonTypeConvertImpl.class */ public class DeviceAndonTypeConvertImpl implements DeviceAndonTypeConvert { @Override // org.springblade.modules.andon.convert.DeviceAndonTypeConvert public DeviceAndonTypeVO convert(DeviceAndonType deviceAndonType) { if (deviceAndonType == null) { return null; } DeviceAndonTypeVO deviceAndonTypeVO = new DeviceAndonTypeVO(); deviceAndonTypeVO.setAndonTypeId(deviceAndonType.getAndonTypeId()); deviceAndonTypeVO.setDeviceTypeId(deviceAndonType.getDeviceTypeId()); deviceAndonTypeVO.setId(deviceAndonType.getId()); deviceAndonTypeVO.setStatus(deviceAndonType.getStatus()); return deviceAndonTypeVO; } @Override // org.springblade.modules.andon.convert.DeviceAndonTypeConvert public DeviceAndonType convert(DeviceAndonTypeVO deviceAndonTypeVO) { if (deviceAndonTypeVO == null) { return null; } DeviceAndonType deviceAndonType = new DeviceAndonType(); deviceAndonType.setId(deviceAndonTypeVO.getId()); deviceAndonType.setStatus(deviceAndonTypeVO.getStatus()); deviceAndonType.setAndonTypeId(deviceAndonTypeVO.getAndonTypeId()); deviceAndonType.setDeviceTypeId(deviceAndonTypeVO.getDeviceTypeId()); return deviceAndonType; } @Override // org.springblade.modules.andon.convert.DeviceAndonTypeConvert public List convert(List list) { if (list == null) { return null; } List list1 = new ArrayList<>(list.size()); for (DeviceAndonType deviceAndonType : list) { list1.add(convert(deviceAndonType)); } return list1; } }