소스 검색

特别鸣谢

jz.kai 1 년 전
부모
커밋
9d418795ee
2개의 변경된 파일6개의 추가작업 그리고 3개의 파일을 삭제
  1. 5 3
      common/src/main/resources/mapper/base/NewsInfo.xml
  2. 1 0
      web/src/main/java/com/jpsoft/employment/config/WebMvcConfig.java

+ 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")
 		;
 	}
 }