111
This commit is contained in:
parent
d99ecce3a4
commit
9f50e3eb5c
@ -12,7 +12,6 @@ public class addCaseExchangeDraft {
|
|||||||
/**
|
/**
|
||||||
* 标题
|
* 标题
|
||||||
*/
|
*/
|
||||||
@NotEmpty(message = "请输入标题")
|
|
||||||
@JsonProperty("exchange_title")
|
@JsonProperty("exchange_title")
|
||||||
private String exchangeTitle;
|
private String exchangeTitle;
|
||||||
|
|
||||||
|
|||||||
@ -40,6 +40,8 @@ public class getClinicalHospitalSearchPage {
|
|||||||
@JsonProperty("article_num")
|
@JsonProperty("article_num")
|
||||||
private String articleNum; // 数量-文章
|
private String articleNum; // 数量-文章
|
||||||
|
|
||||||
|
@JsonProperty("push_date")
|
||||||
|
private String pushDate; // 发布时间
|
||||||
|
|
||||||
public Map<String, String> toMap() {
|
public Map<String, String> toMap() {
|
||||||
Map<String, String> map = new HashMap<>();
|
Map<String, String> map = new HashMap<>();
|
||||||
@ -55,6 +57,10 @@ public class getClinicalHospitalSearchPage {
|
|||||||
map.put("a.article_num", articleNum);
|
map.put("a.article_num", articleNum);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (StringUtils.hasText(pushDate)) {
|
||||||
|
map.put("a.last_push_date", pushDate);
|
||||||
|
}
|
||||||
|
|
||||||
// 默认排序(如果用户未传递任何排序字段)
|
// 默认排序(如果用户未传递任何排序字段)
|
||||||
if (map.isEmpty()) {
|
if (map.isEmpty()) {
|
||||||
map.put("a.updated_at", "desc");
|
map.put("a.updated_at", "desc");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user