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