|
|
@@ -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}
|