zhangf
2024-07-26 698995469a3fcdc3164fc486d18bdbe059b6c92e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package com.gkhy.fourierSpecialGasMonitor.application.attachment.converter;
 
import com.gkhy.fourierSpecialGasMonitor.application.attachment.service.dto.resp.AttachmentAppRespDTO;
import com.gkhy.fourierSpecialGasMonitor.domain.attachment.dto.resp.AttachmentDomainDTO;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Component;
 
/**
 * @email 1603559716@qq.com
 * @author: zf
 * @date: 2023/5/7
 * @time: 17:12
 */
@Component
public class AttachmentAppConverter {
    public AttachmentAppRespDTO getAppRespDTO(AttachmentDomainDTO attachmentDomainDTO){
        if(attachmentDomainDTO == null){
            return null;
        }
        AttachmentAppRespDTO appRespDTO = new AttachmentAppRespDTO();
        BeanUtils.copyProperties(attachmentDomainDTO,appRespDTO);
        return appRespDTO;
    }
}