yangys
2024-03-28 23a939ed820ee32f9a4309f9c81b7bab5a566f30
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
package com.qianwen.smartman.modules.cps.convert;
 
import java.util.ArrayList;
import java.util.List;
import com.qianwen.smartman.modules.cps.dto.WorkstationWcsDTO;
import com.qianwen.smartman.modules.cps.entity.WorkstationWcs;
import com.qianwen.smartman.modules.cps.vo.WorkstationWcsSaveVO;
import com.qianwen.smartman.modules.cps.vo.WorkstationWcsVO;
 
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/cps/convert/WorkstationWcsConvertImpl.class */
public class WorkstationWcsConvertImpl implements WorkstationWcsConvert {
    @Override // org.springblade.modules.cps.convert.WorkstationWcsConvert
    public WorkstationWcs convert(WorkstationWcsSaveVO workstationWcsSaveVO) {
        if (workstationWcsSaveVO == null) {
            return null;
        }
        WorkstationWcs workstationWcs = new WorkstationWcs();
        workstationWcs.setId(workstationWcsSaveVO.getId());
        workstationWcs.setWorkstationId(workstationWcsSaveVO.getWorkstationId());
        workstationWcs.setDataItem(workstationWcsSaveVO.getDataItem());
        workstationWcs.setDataType(workstationWcsSaveVO.getDataType());
        workstationWcs.setDmpVariablesId(workstationWcsSaveVO.getDmpVariablesId());
        workstationWcs.setCollectSettingItem(workstationWcsSaveVO.getCollectSettingItem());
        workstationWcs.setBigScreen(workstationWcsSaveVO.getBigScreen());
        workstationWcs.setRealTimeData(workstationWcsSaveVO.getRealTimeData());
        workstationWcs.setProcessParameter(workstationWcsSaveVO.getProcessParameter());
        workstationWcs.setUsageId(workstationWcsSaveVO.getUsageId());
        return workstationWcs;
    }
 
    @Override // org.springblade.modules.cps.convert.WorkstationWcsConvert
    public WorkstationWcsVO convertVO(WorkstationWcsSaveVO workstationWcsSaveVO) {
        if (workstationWcsSaveVO == null) {
            return null;
        }
        WorkstationWcsVO workstationWcsVO = new WorkstationWcsVO();
        workstationWcsVO.setId(workstationWcsSaveVO.getId());
        workstationWcsVO.setWorkstationId(workstationWcsSaveVO.getWorkstationId());
        workstationWcsVO.setDataItem(workstationWcsSaveVO.getDataItem());
        workstationWcsVO.setDataType(workstationWcsSaveVO.getDataType());
        workstationWcsVO.setDmpVariablesId(workstationWcsSaveVO.getDmpVariablesId());
        workstationWcsVO.setCollectSettingItem(workstationWcsSaveVO.getCollectSettingItem());
        workstationWcsVO.setBigScreen(workstationWcsSaveVO.getBigScreen());
        workstationWcsVO.setRealTimeData(workstationWcsSaveVO.getRealTimeData());
        workstationWcsVO.setProcessParameter(workstationWcsSaveVO.getProcessParameter());
        workstationWcsVO.setUsageId(workstationWcsSaveVO.getUsageId());
        return workstationWcsVO;
    }
 
    @Override // org.springblade.modules.cps.convert.WorkstationWcsConvert
    public WorkstationWcsVO convertVO(WorkstationWcs workstationWcs) {
        if (workstationWcs == null) {
            return null;
        }
        WorkstationWcsVO workstationWcsVO = new WorkstationWcsVO();
        workstationWcsVO.setId(workstationWcs.getId());
        workstationWcsVO.setWorkstationId(workstationWcs.getWorkstationId());
        workstationWcsVO.setDataItem(workstationWcs.getDataItem());
        workstationWcsVO.setDataType(workstationWcs.getDataType());
        workstationWcsVO.setDmpVariablesId(workstationWcs.getDmpVariablesId());
        workstationWcsVO.setCollectSettingItem(workstationWcs.getCollectSettingItem());
        workstationWcsVO.setBigScreen(workstationWcs.getBigScreen());
        workstationWcsVO.setRealTimeData(workstationWcs.getRealTimeData());
        workstationWcsVO.setProcessParameter(workstationWcs.getProcessParameter());
        workstationWcsVO.setUsageId(workstationWcs.getUsageId());
        return workstationWcsVO;
    }
 
    @Override // org.springblade.modules.cps.convert.WorkstationWcsConvert
    public WorkstationWcsSaveVO convert(WorkstationWcs workstationWcs) {
        if (workstationWcs == null) {
            return null;
        }
        WorkstationWcsSaveVO workstationWcsSaveVO = new WorkstationWcsSaveVO();
        workstationWcsSaveVO.setId(workstationWcs.getId());
        workstationWcsSaveVO.setWorkstationId(workstationWcs.getWorkstationId());
        workstationWcsSaveVO.setDataItem(workstationWcs.getDataItem());
        workstationWcsSaveVO.setDataType(workstationWcs.getDataType());
        workstationWcsSaveVO.setDmpVariablesId(workstationWcs.getDmpVariablesId());
        workstationWcsSaveVO.setCollectSettingItem(workstationWcs.getCollectSettingItem());
        workstationWcsSaveVO.setBigScreen(workstationWcs.getBigScreen());
        workstationWcsSaveVO.setRealTimeData(workstationWcs.getRealTimeData());
        workstationWcsSaveVO.setProcessParameter(workstationWcs.getProcessParameter());
        workstationWcsSaveVO.setUsageId(workstationWcs.getUsageId());
        return workstationWcsSaveVO;
    }
 
    @Override // org.springblade.modules.cps.convert.WorkstationWcsConvert
    public List<WorkstationWcsVO> convert(List<WorkstationWcs> workstationWcsList) {
        if (workstationWcsList == null) {
            return null;
        }
        List<WorkstationWcsVO> list = new ArrayList<>(workstationWcsList.size());
        for (WorkstationWcs workstationWcs : workstationWcsList) {
            list.add(convertVO(workstationWcs));
        }
        return list;
    }
 
    @Override // org.springblade.modules.cps.convert.WorkstationWcsConvert
    public List<WorkstationWcs> convertVOToEntity(List<WorkstationWcsSaveVO> workstationWcsSaveVOList) {
        if (workstationWcsSaveVOList == null) {
            return null;
        }
        List<WorkstationWcs> list = new ArrayList<>(workstationWcsSaveVOList.size());
        for (WorkstationWcsSaveVO workstationWcsSaveVO : workstationWcsSaveVOList) {
            list.add(convert(workstationWcsSaveVO));
        }
        return list;
    }
 
    @Override // org.springblade.modules.cps.convert.WorkstationWcsConvert
    public List<WorkstationWcsDTO> convertToDTOList(List<WorkstationWcs> workstationWcsList) {
        if (workstationWcsList == null) {
            return null;
        }
        List<WorkstationWcsDTO> list = new ArrayList<>(workstationWcsList.size());
        for (WorkstationWcs workstationWcs : workstationWcsList) {
            list.add(workstationWcsToWorkstationWcsDTO(workstationWcs));
        }
        return list;
    }
 
    protected WorkstationWcsDTO workstationWcsToWorkstationWcsDTO(WorkstationWcs workstationWcs) {
        if (workstationWcs == null) {
            return null;
        }
        WorkstationWcsDTO workstationWcsDTO = new WorkstationWcsDTO();
        workstationWcsDTO.setId(workstationWcs.getId());
        workstationWcsDTO.setWorkstationId(workstationWcs.getWorkstationId());
        workstationWcsDTO.setDataItem(workstationWcs.getDataItem());
        workstationWcsDTO.setDataType(workstationWcs.getDataType());
        workstationWcsDTO.setDmpVariablesId(workstationWcs.getDmpVariablesId());
        return workstationWcsDTO;
    }
}