yangys
2024-03-27 e48aa2ac8dea1be5db11c63edf0b912c4ad5ce65
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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<DeviceAndonTypeVO> convert(List<DeviceAndonType> list) {
        if (list == null) {
            return null;
        }
        List<DeviceAndonTypeVO> list1 = new ArrayList<>(list.size());
        for (DeviceAndonType deviceAndonType : list) {
            list1.add(convert(deviceAndonType));
        }
        return list1;
    }
}