com.bixuebihui.test.converter.InfoAuthorTermDataConverter Maven / Gradle / Ivy
The newest version!
package com.bixuebihui.test.converter;
import com.bixuebihui.test.pojo.*;
import com.bixuebihui.test.dto.*;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import java.util.List;
/**
* @author xwx
*/
@Mapper
public interface InfoAuthorTermDataConverter {
InfoAuthorTermDataConverter MAPPER = Mappers.getMapper(InfoAuthorTermDataConverter.class);
//@Mapping(source = "status", target = "orderStatus")
InfoAuthorTermDataDto toDto(InfoAuthorTermData info);
InfoAuthorTermData toDao(InfoAuthorTermDataDto info);
List toDtoList(List info);
List toDaoList(List info);
/*
@AfterMapping
public void doAfter(ShopDTO shopDTO, @MappingTarget ShopVo shopVo){
List fruitDTOS = shopDTO.getFruitDTOS();
shopVo.setHasFruit(fruitDTOS!=null&&!fruitDTOS.isEmpty());
}
*/
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy