Commit 8a1edb67 by sdif

修改小程序医院接口

parent 5fd7b93e
...@@ -81,7 +81,7 @@ public class HospitalServiceImpl implements IHospitalService { ...@@ -81,7 +81,7 @@ public class HospitalServiceImpl implements IHospitalService {
LambdaQueryWrapper<Hospital> lqw = new LambdaQueryWrapper<>(); LambdaQueryWrapper<Hospital> lqw = new LambdaQueryWrapper<>();
Page<HospitalVo> result = new Page<>(); Page<HospitalVo> result = new Page<>();
bo.setStatus(1); bo.setStatus(1);
if (null == bo.getId()) { /*if (null == bo.getId()) {
lqw = buildQueryWrapper(bo); lqw = buildQueryWrapper(bo);
result = baseMapper.selectVoPage(pageQuery.build(), lqw); result = baseMapper.selectVoPage(pageQuery.build(), lqw);
} else { } else {
...@@ -92,8 +92,9 @@ public class HospitalServiceImpl implements IHospitalService { ...@@ -92,8 +92,9 @@ public class HospitalServiceImpl implements IHospitalService {
} }
lqw = buildQueryWrapper(bo); lqw = buildQueryWrapper(bo);
result = baseMapper.selectVoPage(pageQuery.build(), lqw); result = baseMapper.selectVoPage(pageQuery.build(), lqw);
} }*/
lqw = buildQueryWrapper(bo);
result = baseMapper.selectVoPage(pageQuery.build(), lqw);
Optional.ofNullable(result.getRecords()).ifPresent(hospitalVos -> { Optional.ofNullable(result.getRecords()).ifPresent(hospitalVos -> {
hospitalVos.forEach(hospitalVo -> { hospitalVos.forEach(hospitalVo -> {
//获取医院类型名称 //获取医院类型名称
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment