吉安感知网项目-后端
linwei
2026-02-05 08d4bb2bf4bfadc9ab5fcf6b0a2bfb543d22b2a0
drone-service/drone-gd/src/main/java/org/sxkj/gd/orderdata/wrapper/GdSupplyDemandAuditAttachmentWrapper.java
@@ -18,9 +18,14 @@
import org.springblade.core.mp.support.BaseEntityWrapper;
import org.springblade.core.tool.utils.BeanUtil;
import org.sxkj.gd.orderdata.dto.GdDataObjectionAttachmentDTO;
import org.sxkj.gd.orderdata.entity.GdDataObjectionAttachmentEntity;
import org.sxkj.gd.orderdata.entity.GdSupplyDemandAuditAttachmentEntity;
import org.sxkj.gd.orderdata.vo.GdSupplyDemandAuditAttachmentVO;
import java.util.List;
import java.util.Objects;
import java.util.stream.Collectors;
/**
 * 供需需求审核附件表 包装类,返回视图层所需的字段
@@ -45,6 +50,15 @@
      return gdSupplyDemandAuditAttachmentVO;
   }
   public GdDataObjectionAttachmentEntity entityDTO(GdDataObjectionAttachmentDTO gdDataObjectionAttachmentDTO) {
      return Objects.requireNonNull(BeanUtil.copy(gdDataObjectionAttachmentDTO, GdDataObjectionAttachmentEntity.class));
   }
   public List<GdDataObjectionAttachmentEntity> entityDTO(List<GdDataObjectionAttachmentDTO> dtoList) {
      return dtoList.stream()
         .map(item -> Objects.requireNonNull(BeanUtil.copy(item, GdDataObjectionAttachmentEntity.class)))
         .collect(Collectors.toList());
   }
}