Browse Source

fix:app按钮

liujunchi 3 years ago
parent
commit
7bc0f8843f

+ 11 - 8
cooleshow-cms/src/main/resources/config/mybatis/SysNewsInformationMapper.xml

@@ -69,14 +69,17 @@
 						and if(sni.offline_time_ is not null,sni.offline_time_ >= now(),1=1)
 					</if>
 				</if>
-				<choose>
-					<when test="platformType == 'WEBSITE'">
-						and sni.platform_type_ = #{platformType}
-					</when>
-					<when test="platformType == 'STUDENT'">
-						and sni.platform_type_ = #{platformType}
-					</when>
-				</choose>
+				<if test="type == 4">
+					<choose>
+						<when test="platformType == 'WEBSITE'">
+							and sni.platform_type_ = #{platformType}
+						</when>
+						<when test="platformType == 'STUDENT'">
+							and sni.platform_type_ = #{platformType}
+						</when>
+					</choose>
+				</if>
+
 
 			</if>
 			<if test="excludeIds!=null and excludeIds.size()>0">