随笔分类 - mybatis
摘要:参考文档 https://blog.csdn.net/YikunWu/article/details/143303426
阅读全文
摘要:实现返回值是一个对象集合(List<Object>)的操作 (1).在接口中定义编写查询的方法 public List<Employee> getEmpsByLastNameLike(String lastName); (2).在该实体对象的对应的映射文件中进行查询的配置 <select id="g
阅读全文
摘要:Mapper.java public interface StorageMapper extends BaseMapper<Storage> { List<Integer> getStorageIdByChannelId(List<Integer> channelIds); } mapper.xml
阅读全文