All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bixuebihui.test.converter.TestGenConverter 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 TestGenConverter {
    TestGenConverter MAPPER = Mappers.getMapper(TestGenConverter.class);

    //@Mapping(source = "status", target = "orderStatus")
    TestGenDto toDto(TestGen info);

    TestGen toDao(TestGenDto 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