修改了疾病标签的搜索444
This commit is contained in:
parent
e3d7345221
commit
20571f6e9e
@ -39,6 +39,8 @@ public class getClinicalDoctorSearchPage {
|
||||
@JsonProperty("article_num")
|
||||
private String articleNum; // 数量-文章
|
||||
|
||||
@JsonProperty("push_date")
|
||||
private String pushDate; // 发布时间
|
||||
|
||||
public Map<String, String> toMap() {
|
||||
Map<String, String> map = new HashMap<>();
|
||||
@ -54,6 +56,10 @@ public class getClinicalDoctorSearchPage {
|
||||
map.put("a.article_num", articleNum);
|
||||
}
|
||||
|
||||
if (StringUtils.hasText(pushDate)) {
|
||||
map.put("a.last_push_date", pushDate);
|
||||
}
|
||||
|
||||
// 默认排序(如果用户未传递任何排序字段)
|
||||
if (map.isEmpty()) {
|
||||
map.put("a.updated_at", "desc");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user