Commit 5fc58839 by 阳浪

优化投稿列表查询

parent 377770c3
package com.yizhi.site.application.vo.site; package com.yizhi.site.application.vo.site;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
...@@ -22,6 +23,9 @@ public class PublicationParamVO extends ContextVO { ...@@ -22,6 +23,9 @@ public class PublicationParamVO extends ContextVO {
@ApiModelProperty(value = "编号") @ApiModelProperty(value = "编号")
private String number; private String number;
@ApiModelProperty("作者")
private String author;
@ApiModelProperty(value="当前页") @ApiModelProperty(value="当前页")
private Integer pageNo; private Integer pageNo;
...@@ -35,9 +39,11 @@ public class PublicationParamVO extends ContextVO { ...@@ -35,9 +39,11 @@ public class PublicationParamVO extends ContextVO {
private Long level; private Long level;
@ApiModelProperty(value="发布时间的起点") @ApiModelProperty(value="发布时间的起点")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date start; private Date start;
@ApiModelProperty(value="发布时间的终点") @ApiModelProperty(value="发布时间的终点")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date end; private Date end;
private Long siteId; private Long siteId;
......
...@@ -55,6 +55,9 @@ ...@@ -55,6 +55,9 @@
<if test="number != null"> <if test="number != null">
and a.number = #{number} and a.number = #{number}
</if> </if>
<if test="author != null">
and a.author = #{author}
</if>
<if test="level != null and level == 1"> <if test="level != null and level == 1">
and a.type_one=#{typeId} and a.type_one=#{typeId}
</if> </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