浏览代码

Merge remote-tracking branch 'origin/master'

zouxuan 3 年之前
父节点
当前提交
7c610aa583
共有 1 个文件被更改,包括 14 次插入10 次删除
  1. 14 10
      cooleshow-cms/src/main/resources/config/mybatis/SysNewsInformationMapper.xml

+ 14 - 10
cooleshow-cms/src/main/resources/config/mybatis/SysNewsInformationMapper.xml

@@ -68,18 +68,22 @@
 						and if(sni.online_time_ is not null,sni.online_time_ <= now(),1=1)
 						and if(sni.online_time_ is not null,sni.online_time_ <= now(),1=1)
 						and if(sni.offline_time_ is not null,sni.offline_time_ >= now(),1=1)
 						and if(sni.offline_time_ is not null,sni.offline_time_ >= now(),1=1)
 					</if>
 					</if>
+					<if test="type == 4">
+						<choose>
+							<when test="platformType == 'WEBSITE'">
+								and sni.client_type_ = #{platformType}
+							</when>
+							<when test="platformType == 'STUDENT'">
+								and sni.client_type_ = #{platformType}
+							</when>
+						</choose>
+					</if>
 				</if>
 				</if>
-				<if test="type == 4">
-					<choose>
-						<when test="platformType == 'WEBSITE'">
-							and sni.client_type_ = #{platformType}
-						</when>
-						<when test="platformType == 'STUDENT'">
-							and sni.client_type_ = #{platformType}
-						</when>
-					</choose>
+				<if test="platformType == 'ADMIN'" >
+					<if test="clientType != null and clientType != ''">
+						and sni.client_type_ = #{clientType}
+					</if>
 				</if>
 				</if>
-
 			</if>
 			</if>
 			<if test="excludeIds!=null and excludeIds.size()>0">
 			<if test="excludeIds!=null and excludeIds.size()>0">
 				AND sni.id_ NOT IN
 				AND sni.id_ NOT IN