zouxuan 4 年 前
コミット
8662c27b1c

+ 10 - 0
mec-biz/src/main/java/com/ym/mec/biz/dal/page/PhotoQueryInfo.java

@@ -16,6 +16,16 @@ public class PhotoQueryInfo extends QueryInfo {
 
 	private Integer photoId;
 
+	private String timeLine;
+
+	public String getTimeLine() {
+		return timeLine;
+	}
+
+	public void setTimeLine(String timeLine) {
+		this.timeLine = timeLine;
+	}
+
 	public YesOrNoEnum getClientShowNum() {
 		return clientShowNum;
 	}

+ 3 - 0
mec-biz/src/main/resources/config/mybatis/PhotoAlbumMapper.xml

@@ -113,6 +113,9 @@
 	</select>
 	<sql id="queryPageSql">
 		<where>
+			<if test="timeLine != null and timeLine != ''">
+				AND DATE_FORMAT(time_line_,"%Y%m") = #{timeLine}
+			</if>
 			<if test="type != null and type != ''">
 				AND type_ = #{type}
 			</if>