修改排序1

This commit is contained in:
wucongxing8150 2025-08-29 16:06:08 +08:00
parent 69d881cf5a
commit 5c081f79d9
3 changed files with 11 additions and 14 deletions

View File

@ -58,11 +58,8 @@ public class getClinicalDoctorSearchPage {
if (StringUtils.hasText(pushDate)) {
map.put("a.last_push_date", pushDate);
}
// 默认排序如果用户未传递任何排序字段
if (map.isEmpty()) {
map.put("a.updated_at", "desc");
}else{
map.put("a.last_push_date", "desc");
}
return map;

View File

@ -59,11 +59,8 @@ public class getClinicalHospitalSearchPage {
if (StringUtils.hasText(pushDate)) {
map.put("a.last_push_date", pushDate);
}
// 默认排序如果用户未传递任何排序字段
if (map.isEmpty()) {
map.put("a.updated_at", "desc");
}else{
map.put("a.last_push_date", "desc");
}
return map;

View File

@ -58,12 +58,15 @@ public class getClinicalLabelSearchPage {
if (StringUtils.hasText(pushDate)) {
map.put("a.last_push_date", pushDate);
}else{
map.put("a.last_push_date", "desc");
}
// 默认排序如果用户未传递任何排序字段
if (map.isEmpty()) {
map.put("a.updated_at", "desc");
}
// // 默认排序如果用户未传递任何排序字段
// if (map.isEmpty()) {
// map.put("a.updated_at", "desc");
// }
return map;
}