@@ -57,7 +57,7 @@
( 0 )
</if>
- <if test="returnStatus ==1 ">AND t1.detail_id in
+ <if test="returnStatus ==1 and hasReturnDetailId.size > 0 ">AND t1.detail_id in
<foreach collection="hasReturnDetailId" index="index" item="id" separator="," open="(" close=")">
#{id,jdbcType=BIGINT}
</foreach>