|
@@ -45,7 +45,6 @@ public class HospitalServiceImpl extends ServiceImpl<HospitalMapper, Hospital> i
|
|
public PageUtils queryList(Integer current, Integer pageSize, Integer hospId, String name) {
|
|
public PageUtils queryList(Integer current, Integer pageSize, Integer hospId, String name) {
|
|
Page<Hospital> hosptailPage = new Page<>(current, pageSize);
|
|
Page<Hospital> hosptailPage = new Page<>(current, pageSize);
|
|
Page<Hospital> pages = this.page(hosptailPage, new QueryWrapper<Hospital>().lambda()
|
|
Page<Hospital> pages = this.page(hosptailPage, new QueryWrapper<Hospital>().lambda()
|
|
-// .eq(!StringUtils.isEmpty(hospId), Hospital::getId, hospId)
|
|
|
|
.like(!StringUtils.isEmpty(name), Hospital::getName, name));
|
|
.like(!StringUtils.isEmpty(name), Hospital::getName, name));
|
|
List<Hospital> records = pages.getRecords();
|
|
List<Hospital> records = pages.getRecords();
|
|
List<HospitalVO> hospitalVOList = BeanUtil.convertList(records, HospitalVO.class);
|
|
List<HospitalVO> hospitalVOList = BeanUtil.convertList(records, HospitalVO.class);
|