瀏覽代碼

图书详情和预约用户列表

5 年之前
父節點
當前提交
4cbcf72395

+ 1 - 1
bms/src/main/java/com/hssx/bms/service/impl/BookServiceImpl.java

@@ -79,7 +79,7 @@ public class BookServiceImpl extends ServiceImpl<BookMapper, Book> implements Bo
         }
         QueryWrapper<Book> qw = new QueryWrapper<Book>();
         if(null != page.getKeyName() && !"".equals(page.getKeyName())){
-            qw.eq("name",page.getKeyName());
+            qw.like("name",page.getKeyName());
         }
         PageHelper.startPage(page.getPageNum(),page.getPageSize());
         List<Book> institutionalInformations = bookMapper.selectList(qw);

+ 1 - 1
bms/src/main/java/com/hssx/bms/service/impl/InstitutionalInformationServiceImpl.java

@@ -106,7 +106,7 @@ public class InstitutionalInformationServiceImpl extends ServiceImpl<Institution
         qw.eq("is_delete",0).select("id", "name", "phone", "address");
         PageHelper.startPage(page.getPageNum(),page.getPageSize());
         if(null != page.getKeyName() && !"".equals(page.getKeyName())){
-            qw.eq("name",page.getKeyName());
+            qw.like("name",page.getKeyName());
         }
         List<InstitutionalInformation> institutionalInformations = institutionalMapper.selectList(qw);
         PageInfo<InstitutionalInformation> pageInfo = new PageInfo<>(institutionalInformations);