Bläddra i källkod

fix:广告查询条件

liujunchi 3 år sedan
förälder
incheckning
c47e0e6d2a

+ 13 - 1
cooleshow-cms/src/main/java/com/yonge/cooleshow/cms/controller/queryinfo/NewsInformationQueryInfo.java

@@ -21,7 +21,7 @@ public class NewsInformationQueryInfo extends QueryInfo {
 	@NotBlank(message = "平台类型不能为空")
 	private String platformType;
 
-	@ApiModelProperty(value = "子类型  IMAGE:图片,VIDEO:视频", required = false)
+	@ApiModelProperty(value = "子类型  章节id", required = false)
 	private String subType;
 
 	@ApiModelProperty(value = "资讯状态(0:禁用,1:启用)", required = false)
@@ -42,8 +42,20 @@ public class NewsInformationQueryInfo extends QueryInfo {
 	@ApiModelProperty("版本号")
 	private String version;
 
+	@ApiModelProperty("广告类型  IMAGE:图片,VIDEO:视频")
+	private String attribute2;
+
 	private Date date;
 
+
+	public String getAttribute2() {
+		return attribute2;
+	}
+
+	public void setAttribute2(String attribute2) {
+		this.attribute2 = attribute2;
+	}
+
 	public Integer getType() {
 		return type;
 	}

+ 3 - 0
cooleshow-cms/src/main/resources/config/mybatis/SysNewsInformationMapper.xml

@@ -77,6 +77,9 @@
 			<if test="version != null and version != ''">
 				and sni.attribute1_ = #{version}
 			</if>
+			<if test="attribute2 != null and attribute2 != ''">
+				and sni.attribute2_ = #{attribute2}
+			</if>
 		</where>
 	</sql>