package com.persagy.meiku.services.mapper

import com.persagy.meiku.models.pic.Picture
import org.apache.ibatis.annotations.Mapper
import org.apache.ibatis.annotations.Param
import org.apache.ibatis.annotations.Select
import org.springframework.stereotype.Repository

/**
 *
 * @author wx  <zhangweixin@sagacloud.com>
 * @date  2020/11/2 17:36
 */
@Mapper
@Repository
interface CustomSql {

    @Select("SELECT * FROM labsl_meiku.picture WHERE id = #{id}")
    fun loadPic(@Param("id") id: String): Picture?
}