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