jz.kai пре 1 година
родитељ
комит
9d418795ee

+ 5 - 3
common/src/main/resources/mapper/base/NewsInfo.xml

@@ -108,9 +108,11 @@
 					AND reg_user_id = #{searchParams.regUserId}
 				)
 			</if>
-			<foreach collection="searchParams.types" item="item"  open="and (" separator="or" close=")">
-				a.type_ = #{item}
-			</foreach>
+			<if test="searchParams.types != null">
+				<foreach collection="searchParams.types" item="item"  open="and (" separator="or" close=")">
+					a.type_ = #{item}
+				</foreach>
+			</if>
 		</where>
 		<foreach item="sort" collection="sortList"  open="order by" separator=",">
 	        ${sort.name} ${sort.order}

+ 1 - 0
web/src/main/java/com/jpsoft/employment/config/WebMvcConfig.java

@@ -93,6 +93,7 @@ public class WebMvcConfig implements WebMvcConfigurer {
 				.excludePathPatterns("/base/api/volunteer/detail")
 				//消息
 				.excludePathPatterns("/base/api/news/list")
+				.excludePathPatterns("/base/api/news/thanksList")
 		;
 	}
 }