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.ToolAppendix;
import com.qianwen.smartman.modules.cps.vo.ToolAppendixVO;
 
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/cps/convert/ToolAppendixConvertImpl.class */
public class ToolAppendixConvertImpl implements ToolAppendixConvert {
    @Override // org.springblade.modules.cps.convert.ToolAppendixConvert
    public ToolAppendixVO convert(ToolAppendix toolAppendix) {
        if (toolAppendix == null) {
            return null;
        }
        ToolAppendixVO toolAppendixVO = new ToolAppendixVO();
        toolAppendixVO.setParentId(toolAppendix.getParentId());
        toolAppendixVO.setFileLength(toolAppendix.getFileLength());
        toolAppendixVO.setFileName(toolAppendix.getFileName());
        toolAppendixVO.setObjectKey(toolAppendix.getObjectKey());
        toolAppendixVO.setFileLink(toolAppendix.getFileLink());
        toolAppendixVO.setContentType(toolAppendix.getContentType());
        toolAppendixVO.setCreateTime(toolAppendix.getCreateTime());
        toolAppendixVO.setId(toolAppendix.getId());
        return toolAppendixVO;
    }
 
    @Override // org.springblade.modules.cps.convert.ToolAppendixConvert
    public ToolAppendix convert(ToolAppendixVO toolAppendixVO) {
        if (toolAppendixVO == null) {
            return null;
        }
        ToolAppendix toolAppendix = new ToolAppendix();
        toolAppendix.setId(toolAppendixVO.getId());
        toolAppendix.setCreateTime(toolAppendixVO.getCreateTime());
        toolAppendix.setParentId(toolAppendixVO.getParentId());
        toolAppendix.setFileLength(toolAppendixVO.getFileLength());
        toolAppendix.setFileName(toolAppendixVO.getFileName());
        toolAppendix.setObjectKey(toolAppendixVO.getObjectKey());
        toolAppendix.setFileLink(toolAppendixVO.getFileLink());
        toolAppendix.setContentType(toolAppendixVO.getContentType());
        return toolAppendix;
    }
 
    @Override // org.springblade.modules.cps.convert.ToolAppendixConvert
    public List<ToolAppendixVO> convert(List<ToolAppendix> list) {
        if (list == null) {
            return null;
        }
        List<ToolAppendixVO> list1 = new ArrayList<>(list.size());
        for (ToolAppendix toolAppendix : list) {
            list1.add(convert(toolAppendix));
        }
        return list1;
    }
 
    @Override // org.springblade.modules.cps.convert.ToolAppendixConvert
    public List<ToolAppendix> convertVo(List<ToolAppendixVO> list) {
        if (list == null) {
            return null;
        }
        List<ToolAppendix> list1 = new ArrayList<>(list.size());
        for (ToolAppendixVO toolAppendixVO : list) {
            list1.add(convert(toolAppendixVO));
        }
        return list1;
    }
}