This commit is contained in:
wenyann 2020-06-02 15:41:50 +08:00
parent d0975fe528
commit b6529b25b8
1 changed files with 4 additions and 4 deletions

View File

@ -26,8 +26,8 @@
<if test="request.id != null">
AND api_test.id = #{request.id}
</if>
<if test="reportRequest.filters != null and reportRequest.filters.size() > 0">
<foreach collection="reportRequest.filters.entrySet()" index="key" item="values">
<if test="request.filters != null and request.filters.size() > 0">
<foreach collection="request.filters.entrySet()" index="key" item="values">
<if test="values != null and values.size() > 0">
and api_test.${key} in
<foreach collection="values" item="value" separator="," open="(" close=")">
@ -37,9 +37,9 @@
</foreach>
</if>
</where>
<if test="reportRequest.orders != null and reportRequest.orders.size() > 0">
<if test="request.orders != null and request.orders.size() > 0">
order by
<foreach collection="reportRequest.orders" separator="," item="order">
<foreach collection="request.orders" separator="," item="order">
api_test.${order.name} ${order.type}
</foreach>
</if>