Commit 5fc58839 by 阳浪

优化投稿列表查询

parent 377770c3
package com.yizhi.site.application.vo.site;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
......@@ -22,6 +23,9 @@ public class PublicationParamVO extends ContextVO {
@ApiModelProperty(value = "编号")
private String number;
@ApiModelProperty("作者")
private String author;
@ApiModelProperty(value="当前页")
private Integer pageNo;
......@@ -35,9 +39,11 @@ public class PublicationParamVO extends ContextVO {
private Long level;
@ApiModelProperty(value="发布时间的起点")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date start;
@ApiModelProperty(value="发布时间的终点")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date end;
private Long siteId;
......
......@@ -55,6 +55,9 @@
<if test="number != null">
and a.number = #{number}
</if>
<if test="author != null">
and a.author = #{author}
</if>
<if test="level != null and level == 1">
and a.type_one=#{typeId}
</if>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment