| | |
| | | package com.lunhan.xxx.repository.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.Constants; |
| | | import com.lunhan.xxx.entity.dto.search.SearchTestInfo; |
| | | import com.lunhan.xxx.entity.search.SearchTestInfo; |
| | | import com.lunhan.xxx.repository.BasicMapper; |
| | | import com.lunhan.xxx.repository.po.TestInfoPO; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | |
| | | |
| | | @Mapper |
| | | public interface TestInfoMapper extends BasicMapper<TestInfoPO> { |
| | | //==================== 自定义sql查询方法 声明示例 - begin ==================== |
| | | // #{param}:会进行预编译,而且进行类型匹配,最后进行变量替换,括号中可以添加映射类型如 |
| | | // @Select( |
| | | // "<script>" + |
| | |
| | | |
| | | @Select("select * from test_info where status = #{search.status}") |
| | | List<TestInfoPO> testList2(@Param("search") SearchTestInfo search); |
| | | |
| | | //==================== 自定义sql查询方法 声明示例 - end ==================== |
| | | } |