the dynamic sql of mybatis is as follows in the xml file:
count( DISTINCT item.RECORD_ID ) AS borrowNum -- ()
</if>
as above, I want to judge whether the eachBook field is 0 or 1 . May I ask how to write it? I didn"t say it even after reading the official mybatis document.
those who want to know will let me know, thank you.
