| | |
| | | |
| | | 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; |
| | | |
| | | /** |
| | | * 供需需求审核附件表 包装类,返回视图层所需的字段 |
| | |
| | | |
| | | 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()); |
| | | } |
| | | |
| | | |
| | | } |