com.bixuebihui.test.converter.TEduConverter Maven / Gradle / Ivy
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 TEduConverter {
TEduConverter MAPPER = Mappers.getMapper(TEduConverter.class);
//@Mapping(source = "status", target = "orderStatus")
TEduDto toDto(TEdu info);
TEdu toDao(TEduDto 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