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
package com.qianwen.smartman.modules.cps.convert;
 
import java.util.ArrayList;
import java.util.List;
import com.qianwen.smartman.modules.cps.entity.MalfunctionType;
import com.qianwen.smartman.modules.cps.vo.MalfunctionTypeRecordVO;
 
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/cps/convert/MalfunctionTypeRecordConvertImpl.class */
public class MalfunctionTypeRecordConvertImpl implements MalfunctionTypeRecordConvert {
    @Override // org.springblade.modules.cps.convert.MalfunctionTypeRecordConvert
    public List<MalfunctionTypeRecordVO> convert(List<MalfunctionType> list) {
        if (list == null) {
            return null;
        }
        List<MalfunctionTypeRecordVO> list1 = new ArrayList<>(list.size());
        for (MalfunctionType malfunctionType : list) {
            list1.add(malfunctionTypeToMalfunctionTypeRecordVO(malfunctionType));
        }
        return list1;
    }
 
    protected MalfunctionTypeRecordVO malfunctionTypeToMalfunctionTypeRecordVO(MalfunctionType malfunctionType) {
        if (malfunctionType == null) {
            return null;
        }
        MalfunctionTypeRecordVO malfunctionTypeRecordVO = new MalfunctionTypeRecordVO();
        malfunctionTypeRecordVO.setId(malfunctionType.getId());
        malfunctionTypeRecordVO.setCode(malfunctionType.getCode());
        malfunctionTypeRecordVO.setName(malfunctionType.getName());
        return malfunctionTypeRecordVO;
    }
}