修改排序1
This commit is contained in:
parent
69d881cf5a
commit
5c081f79d9
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user