| package com.zy.asrs.mapper; | 
|   | 
| import com.baomidou.mybatisplus.mapper.BaseMapper; | 
| import com.zy.asrs.entity.InOut; | 
|   | 
| import org.apache.ibatis.annotations.Mapper; | 
| import org.apache.ibatis.annotations.Select; | 
| import org.springframework.stereotype.Repository; | 
|   | 
| @Mapper | 
| @Repository | 
| public interface InOutMapper extends BaseMapper<InOut> { | 
|     @Select("select top 1 * from man_mat_inout where matnr = #{matnr}") | 
|     InOut selectByMatnr(String matnr); | 
| } |