zhang_nuo
2026-09-20 3d950b8475cc52084cb40ed7a9373900f0606167
src/main/resources/mapper/account/purchase/AccountPaymentApplicationMapper.xml
@@ -89,14 +89,10 @@
    <select id="existsByStockInRecordId" resultType="java.lang.Boolean">
         SELECT COUNT(*) > 0
        FROM account_payment_application
        WHERE status != 2
        <if test="stockInRecordIds != null and stockInRecordIds.size() > 0">
            AND (
            <foreach collection="stockInRecordIds" item="id" separator=" OR ">
                FIND_IN_SET(#{id}, stock_in_record_ids)
            </foreach>
            )
        </if>
        WHERE status != 2 AND
        <foreach collection="stockInRecordIds" item="id" open="(" separator=" OR " close=")">
            FIND_IN_SET(#{id}, stock_in_record_ids)
        </foreach>
    </select>
</mapper>