@Mapper(componentModel = "spring") public interface ProductMapper { ProductMapper INSTANCE = Mappers.getMapper(ProductMapper.class); @Mappings({@Mapping(source = "price", target = "productPrice", qualifiedByName = "priceToProductPrice"), @Mapping(source="id", target="productId") }) public abstract ProductOutput mapProductEntity2Output(ProductEntity productEntity); @Named("priceToProductPrice") return price.toString()+" ?"; } }