fix(接口测试): 任务中心查询资源池列表报错

This commit is contained in:
AgAngle 2024-10-22 16:42:05 +08:00 committed by Craftsman
parent d440688cbf
commit dead5c92c2
1 changed files with 5 additions and 4 deletions

View File

@ -66,10 +66,11 @@
FROM test_resource_pool
where deleted = false
<if test="poolIds != null and poolIds.size() > 0 ">
and (all_org = true or id
<foreach collection="poolIds" item="poolId" open="(" separator="," close=")">
#{poolId}
</foreach>
and (
all_org = true or id in
<foreach collection="poolIds" item="poolId" open="(" separator="," close=")">
#{poolId}
</foreach>
)
</if>
<if test="poolIds == null or poolIds.size() == 0">