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
package com.qianwen.smartman.modules.trace.convert;
 
import java.util.ArrayList;
import java.util.List;
import com.qianwen.smartman.modules.trace.entity.TraceFlowSettings;
import com.qianwen.smartman.modules.trace.vo.TraceFlowSettingsVO;
 
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/trace/convert/TraceFlowSettingsConvertImpl.class */
public class TraceFlowSettingsConvertImpl implements TraceFlowSettingsConvert {
    @Override // org.springblade.modules.trace.convert.TraceFlowSettingsConvert
    public TraceFlowSettingsVO convert(TraceFlowSettings traceFlowSettings) {
        if (traceFlowSettings == null) {
            return null;
        }
        TraceFlowSettingsVO traceFlowSettingsVO = new TraceFlowSettingsVO();
        traceFlowSettingsVO.setCode(traceFlowSettings.getCode());
        traceFlowSettingsVO.setName(traceFlowSettings.getName());
        traceFlowSettingsVO.setFlowSeq(traceFlowSettings.getFlowSeq());
        traceFlowSettingsVO.setStationType(traceFlowSettings.getStationType());
        traceFlowSettingsVO.setWorkstationGroupId(traceFlowSettings.getWorkstationGroupId());
        traceFlowSettingsVO.setPreFlowId(traceFlowSettings.getPreFlowId());
        traceFlowSettingsVO.setNextFlowId(traceFlowSettings.getNextFlowId());
        traceFlowSettingsVO.setFlowType(traceFlowSettings.getFlowType());
        traceFlowSettingsVO.setTriggerEndFlowStyle(traceFlowSettings.getTriggerEndFlowStyle());
        traceFlowSettingsVO.setQualityResultOffline(traceFlowSettings.getQualityResultOffline());
        traceFlowSettingsVO.setQualityMakerFlowId(traceFlowSettings.getQualityMakerFlowId());
        traceFlowSettingsVO.setId(traceFlowSettings.getId());
        return traceFlowSettingsVO;
    }
 
    @Override // org.springblade.modules.trace.convert.TraceFlowSettingsConvert
    public TraceFlowSettings convert(TraceFlowSettingsVO traceFlowSettingsVO) {
        if (traceFlowSettingsVO == null) {
            return null;
        }
        TraceFlowSettings traceFlowSettings = new TraceFlowSettings();
        traceFlowSettings.setId(traceFlowSettingsVO.getId());
        traceFlowSettings.setCode(traceFlowSettingsVO.getCode());
        traceFlowSettings.setName(traceFlowSettingsVO.getName());
        traceFlowSettings.setFlowSeq(traceFlowSettingsVO.getFlowSeq());
        traceFlowSettings.setStationType(traceFlowSettingsVO.getStationType());
        traceFlowSettings.setWorkstationGroupId(traceFlowSettingsVO.getWorkstationGroupId());
        traceFlowSettings.setPreFlowId(traceFlowSettingsVO.getPreFlowId());
        traceFlowSettings.setNextFlowId(traceFlowSettingsVO.getNextFlowId());
        traceFlowSettings.setFlowType(traceFlowSettingsVO.getFlowType());
        traceFlowSettings.setTriggerEndFlowStyle(traceFlowSettingsVO.getTriggerEndFlowStyle());
        traceFlowSettings.setQualityResultOffline(traceFlowSettingsVO.getQualityResultOffline());
        traceFlowSettings.setQualityMakerFlowId(traceFlowSettingsVO.getQualityMakerFlowId());
        return traceFlowSettings;
    }
 
    @Override // org.springblade.modules.trace.convert.TraceFlowSettingsConvert
    public List<TraceFlowSettingsVO> convert(List<TraceFlowSettings> list) {
        if (list == null) {
            return null;
        }
        List<TraceFlowSettingsVO> list1 = new ArrayList<>(list.size());
        for (TraceFlowSettings traceFlowSettings : list) {
            list1.add(convert(traceFlowSettings));
        }
        return list1;
    }
}