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
68
69
70
71
72
73
74
75
76
77
78
79
package com.qianwen.smartman.modules.fms.convert;
 
import java.util.ArrayList;
import java.util.List;
import com.qianwen.smartman.modules.fms.entity.FmsInstructionRecord;
import com.qianwen.smartman.modules.fms.vo.FmsInstructionRecordVO;
 
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/fms/convert/FmsInstructionRecordConvertImpl.class */
public class FmsInstructionRecordConvertImpl implements FmsInstructionRecordConvert {
    @Override // org.springblade.modules.fms.convert.FmsInstructionRecordConvert
    public FmsInstructionRecordVO convert(FmsInstructionRecord fmsInstructionRecord) {
        if (fmsInstructionRecord == null) {
            return null;
        }
        FmsInstructionRecordVO fmsInstructionRecordVO = new FmsInstructionRecordVO();
        fmsInstructionRecordVO.setTenantId(fmsInstructionRecord.getTenantId());
        fmsInstructionRecordVO.setOrderCode(fmsInstructionRecord.getOrderCode());
        fmsInstructionRecordVO.setProcessCode(fmsInstructionRecord.getProcessCode());
        fmsInstructionRecordVO.setState(fmsInstructionRecord.getState());
        fmsInstructionRecordVO.setStartPosition(fmsInstructionRecord.getStartPosition());
        fmsInstructionRecordVO.setStartBench(fmsInstructionRecord.getStartBench());
        fmsInstructionRecordVO.setEndPosition(fmsInstructionRecord.getEndPosition());
        fmsInstructionRecordVO.setEndBench(fmsInstructionRecord.getEndBench());
        fmsInstructionRecordVO.setTrayCode(fmsInstructionRecord.getTrayCode());
        fmsInstructionRecordVO.setProgramNo(fmsInstructionRecord.getProgramNo());
        fmsInstructionRecordVO.setProgramOffset(fmsInstructionRecord.getProgramOffset());
        fmsInstructionRecordVO.setSignalState(fmsInstructionRecord.getSignalState());
        fmsInstructionRecordVO.setAbnormalReason(fmsInstructionRecord.getAbnormalReason());
        fmsInstructionRecordVO.setLog(fmsInstructionRecord.getLog());
        fmsInstructionRecordVO.setLastLoad(fmsInstructionRecord.getLastLoad());
        fmsInstructionRecordVO.setChangeModel(fmsInstructionRecord.getChangeModel());
        fmsInstructionRecordVO.setId(fmsInstructionRecord.getId());
        fmsInstructionRecordVO.setStatus(fmsInstructionRecord.getStatus());
        fmsInstructionRecordVO.setCreateTime(fmsInstructionRecord.getCreateTime());
        fmsInstructionRecordVO.setUpdateTime(fmsInstructionRecord.getUpdateTime());
        return fmsInstructionRecordVO;
    }
 
    @Override // org.springblade.modules.fms.convert.FmsInstructionRecordConvert
    public FmsInstructionRecord convert(FmsInstructionRecordVO fmsInstructionRecordVO) {
        if (fmsInstructionRecordVO == null) {
            return null;
        }
        FmsInstructionRecord fmsInstructionRecord = new FmsInstructionRecord();
        fmsInstructionRecord.setId(fmsInstructionRecordVO.getId());
        fmsInstructionRecord.setCreateTime(fmsInstructionRecordVO.getCreateTime());
        fmsInstructionRecord.setUpdateTime(fmsInstructionRecordVO.getUpdateTime());
        fmsInstructionRecord.setStatus(fmsInstructionRecordVO.getStatus());
        fmsInstructionRecord.setTenantId(fmsInstructionRecordVO.getTenantId());
        fmsInstructionRecord.setOrderCode(fmsInstructionRecordVO.getOrderCode());
        fmsInstructionRecord.setProcessCode(fmsInstructionRecordVO.getProcessCode());
        fmsInstructionRecord.setState(fmsInstructionRecordVO.getState());
        fmsInstructionRecord.setStartPosition(fmsInstructionRecordVO.getStartPosition());
        fmsInstructionRecord.setStartBench(fmsInstructionRecordVO.getStartBench());
        fmsInstructionRecord.setEndPosition(fmsInstructionRecordVO.getEndPosition());
        fmsInstructionRecord.setEndBench(fmsInstructionRecordVO.getEndBench());
        fmsInstructionRecord.setTrayCode(fmsInstructionRecordVO.getTrayCode());
        fmsInstructionRecord.setProgramNo(fmsInstructionRecordVO.getProgramNo());
        fmsInstructionRecord.setProgramOffset(fmsInstructionRecordVO.getProgramOffset());
        fmsInstructionRecord.setSignalState(fmsInstructionRecordVO.getSignalState());
        fmsInstructionRecord.setAbnormalReason(fmsInstructionRecordVO.getAbnormalReason());
        fmsInstructionRecord.setLog(fmsInstructionRecordVO.getLog());
        fmsInstructionRecord.setLastLoad(fmsInstructionRecordVO.getLastLoad());
        fmsInstructionRecord.setChangeModel(fmsInstructionRecordVO.getChangeModel());
        return fmsInstructionRecord;
    }
 
    @Override // org.springblade.modules.fms.convert.FmsInstructionRecordConvert
    public List<FmsInstructionRecordVO> convert(List<FmsInstructionRecord> list) {
        if (list == null) {
            return null;
        }
        List<FmsInstructionRecordVO> list1 = new ArrayList<>(list.size());
        for (FmsInstructionRecord fmsInstructionRecord : list) {
            list1.add(convert(fmsInstructionRecord));
        }
        return list1;
    }
}