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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
package com.qianwen.smartman.modules.cps.convert;
 
import java.util.ArrayList;
import java.util.List;
import com.qianwen.smartman.modules.cps.entity.DmpVariables;
import com.qianwen.smartman.modules.cps.vo.DmpVariablesVO;
 
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/cps/convert/DmpVariablesConvertImpl.class */
public class DmpVariablesConvertImpl implements DmpVariablesConvert {
    @Override // org.springblade.modules.cps.convert.DmpVariablesConvert
    public DmpVariables convert(DmpVariablesVO dmpVariablesVO) {
        if (dmpVariablesVO == null) {
            return null;
        }
        DmpVariables dmpVariables = new DmpVariables();
        dmpVariables.setId(dmpVariablesVO.getId());
        dmpVariables.setDmpDeviceId(dmpVariablesVO.getDmpDeviceId());
        dmpVariables.setMachineId(dmpVariablesVO.getMachineId());
        dmpVariables.setDmpType(dmpVariablesVO.getDmpType());
        dmpVariables.setName(dmpVariablesVO.getName());
        dmpVariables.setDescription(dmpVariablesVO.getDescription());
        dmpVariables.setDeviceAddress(dmpVariablesVO.getDeviceAddress());
        dmpVariables.setDmpAccess(dmpVariablesVO.getDmpAccess());
        dmpVariables.setDataLength(dmpVariablesVO.getDataLength());
        dmpVariables.setValueFactor(dmpVariablesVO.getValueFactor());
        dmpVariables.setDataType(dmpVariablesVO.getDataType());
        dmpVariables.setMethodParam(dmpVariablesVO.getMethodParam());
        dmpVariables.setIdx(dmpVariablesVO.getIdx());
        dmpVariables.setDefaultValue(dmpVariablesVO.getDefaultValue());
        return dmpVariables;
    }
 
    @Override // org.springblade.modules.cps.convert.DmpVariablesConvert
    public DmpVariablesVO convert(DmpVariables dmpVariables) {
        if (dmpVariables == null) {
            return null;
        }
        DmpVariablesVO dmpVariablesVO = new DmpVariablesVO();
        dmpVariablesVO.setId(dmpVariables.getId());
        dmpVariablesVO.setDmpDeviceId(dmpVariables.getDmpDeviceId());
        dmpVariablesVO.setMachineId(dmpVariables.getMachineId());
        dmpVariablesVO.setDmpType(dmpVariables.getDmpType());
        dmpVariablesVO.setName(dmpVariables.getName());
        dmpVariablesVO.setDescription(dmpVariables.getDescription());
        dmpVariablesVO.setDeviceAddress(dmpVariables.getDeviceAddress());
        dmpVariablesVO.setDmpAccess(dmpVariables.getDmpAccess());
        dmpVariablesVO.setDataLength(dmpVariables.getDataLength());
        dmpVariablesVO.setValueFactor(dmpVariables.getValueFactor());
        dmpVariablesVO.setDataType(dmpVariables.getDataType());
        dmpVariablesVO.setMethodParam(dmpVariables.getMethodParam());
        dmpVariablesVO.setIdx(dmpVariables.getIdx());
        dmpVariablesVO.setDefaultValue(dmpVariables.getDefaultValue());
        return dmpVariablesVO;
    }
 
    @Override // org.springblade.modules.cps.convert.DmpVariablesConvert
    public List<DmpVariablesVO> convert(List<DmpVariables> dmpVariablesList) {
        if (dmpVariablesList == null) {
            return null;
        }
        List<DmpVariablesVO> list = new ArrayList<>(dmpVariablesList.size());
        for (DmpVariables dmpVariables : dmpVariablesList) {
            list.add(convert(dmpVariables));
        }
        return list;
    }
}