|
@ -132,10 +132,32 @@ public class ConsultTeamService extends ConsultService {
|
|
|
return findByDoctorType8(uid, id, pagesize, title);
|
|
|
case 9:
|
|
|
return findByDoctorType9(uid, id, pagesize);
|
|
|
case 10:
|
|
|
return findByDoctorType10(uid, id, pagesize, title);
|
|
|
}
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
private Page<ConsultTeam> findByDoctorType10(String uid, long id, int pagesize,String title) {
|
|
|
Sort sort = new Sort(Direction.DESC, "id");
|
|
|
// 分页信息
|
|
|
PageRequest pageRequest = new PageRequest(0, pagesize, sort);
|
|
|
if (StringUtils.isNoneEmpty(title)) {
|
|
|
title = "%" + title + "%";
|
|
|
if (id > 0) {
|
|
|
return consultTeamDao.findMyFamousDoctorAllList(uid, id, title, pageRequest);
|
|
|
} else {
|
|
|
return consultTeamDao.findMyFamousDoctorAllList(uid, title, pageRequest);
|
|
|
}
|
|
|
} else {
|
|
|
if (id > 0) {
|
|
|
return consultTeamDao.findMyFamousDoctorAllList(uid, id, pageRequest);
|
|
|
} else {
|
|
|
return consultTeamDao.findMyFamousDoctorAllList(uid, pageRequest);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
private Page<ConsultTeam> findByDoctorTypeSix(String uid, long id, int pagesize, String title) {
|
|
|
Sort sort = new Sort(Direction.DESC, "id");
|
|
|
// 分页信息
|
|
@ -335,15 +357,7 @@ public class ConsultTeamService extends ConsultService {
|
|
|
* @return
|
|
|
*/
|
|
|
public Page<ConsultTeam> findByDoctorType9(String uid, long id, int pagesize) {
|
|
|
// 排序
|
|
|
Sort sort = new Sort(Direction.DESC, "id");
|
|
|
// 分页信息
|
|
|
PageRequest pageRequest = new PageRequest(0, pagesize, sort);
|
|
|
if (id > 0) {
|
|
|
return consultTeamDao.findDoctorAllList(uid, id, pageRequest);
|
|
|
} else {
|
|
|
return consultTeamDao.findDoctorAllList(uid, pageRequest);
|
|
|
}
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
/**
|