“djh”
2024-12-05 eee41a5fb58e6547a43929430f4b72908119db6e
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
package com.gkhy.testFourierSpecialGasMonitor.domain.account.converter;
 
import cn.hutool.core.util.ObjectUtil;
import com.gkhy.testFourierSpecialGasMonitor.commons.utils.BeanCopyUtils;
import com.gkhy.testFourierSpecialGasMonitor.domain.account.entity.UserIdentity;
import com.gkhy.testFourierSpecialGasMonitor.domain.account.model.dto.UserIdentityDomainDTO;
import org.springframework.stereotype.Component;
 
import java.util.ArrayList;
import java.util.List;
 
/**
 * @email 1603559716@qq.com
 * @author: zf
 * @date: 2023/3/13
 * @time: 10:34
 */
@Component
public class UserIdentityConverter {
 
 
    public List<UserIdentityDomainDTO> userIdentityDomainConverter(List<UserIdentity> list){
        List<UserIdentityDomainDTO> respDTO = new ArrayList<>();
        if(ObjectUtil.isNotEmpty(list)){
           respDTO = BeanCopyUtils.copyBeanList(list, UserIdentityDomainDTO.class);
        }
        return respDTO;
    }
 
}