Bläddra i källkod

update:轮播图修改

liujunchi 3 år sedan
förälder
incheckning
13e7c617b8

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

@@ -69,9 +69,15 @@
 						and if(sni.offline_time_ is not null,sni.offline_time_ >= now(),1=1)
 					</if>
 				</if>
-				<if test="platformType == 'WEBSITE'">
-					and sni.platform_type_ = #{platformType}
-				</if>
+				<choose>
+					<when test="platformType == 'WEBSITE'">
+						and sni.platform_type_ = #{platformType}
+					</when>
+					<when test="platformType == 'STUDENT'">
+						and sni.platform_type_ = #{platformType}
+					</when>
+				</choose>
+
 			</if>
 			<if test="excludeIds!=null and excludeIds.size()>0">
 				AND sni.id_ NOT IN