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
package com.qianwen.smartman.modules.cps.convert;
 
import java.util.ArrayList;
import java.util.List;
import com.qianwen.smartman.modules.cps.entity.TraySurface;
import com.qianwen.smartman.modules.cps.vo.TrayFaceAddVO;
import com.qianwen.smartman.modules.cps.vo.TraySurfaceVO;
 
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/cps/convert/TraySurfaceConvertImpl.class */
public class TraySurfaceConvertImpl implements TraySurfaceConvert {
    @Override // org.springblade.modules.cps.convert.TraySurfaceConvert
    public TraySurfaceVO convert(TraySurface traySurface) {
        if (traySurface == null) {
            return null;
        }
        TraySurfaceVO traySurfaceVO = new TraySurfaceVO();
        traySurfaceVO.setId(traySurface.getId());
        traySurfaceVO.setTrayId(traySurface.getTrayId());
        traySurfaceVO.setName(traySurface.getName());
        traySurfaceVO.setCode(traySurface.getCode());
        traySurfaceVO.setProgramCode(traySurface.getProgramCode());
        traySurfaceVO.setInUse(traySurface.getInUse());
        return traySurfaceVO;
    }
 
    @Override // org.springblade.modules.cps.convert.TraySurfaceConvert
    public TraySurface convert(TrayFaceAddVO traySurface) {
        if (traySurface == null) {
            return null;
        }
        TraySurface traySurface1 = new TraySurface();
        traySurface1.setTrayId(traySurface.getTrayId());
        traySurface1.setName(traySurface.getName());
        traySurface1.setCode(traySurface.getCode());
        traySurface1.setProgramCode(traySurface.getProgramCode());
        return traySurface1;
    }
 
    @Override // org.springblade.modules.cps.convert.TraySurfaceConvert
    public TraySurface convert(TraySurfaceVO traySurfaceVO) {
        if (traySurfaceVO == null) {
            return null;
        }
        TraySurface traySurface = new TraySurface();
        traySurface.setId(traySurfaceVO.getId());
        traySurface.setTrayId(traySurfaceVO.getTrayId());
        traySurface.setName(traySurfaceVO.getName());
        traySurface.setCode(traySurfaceVO.getCode());
        traySurface.setProgramCode(traySurfaceVO.getProgramCode());
        traySurface.setInUse(traySurfaceVO.getInUse());
        return traySurface;
    }
 
    @Override // org.springblade.modules.cps.convert.TraySurfaceConvert
    public List<TraySurfaceVO> convert(List<TraySurface> list) {
        if (list == null) {
            return null;
        }
        List<TraySurfaceVO> list1 = new ArrayList<>(list.size());
        for (TraySurface traySurface : list) {
            list1.add(convert(traySurface));
        }
        return list1;
    }
}