About the problem that mybatis query collection returns as [null]

In the recent project, I encountered the query set list is null, but it is not empty, but it still enters the non-empty judgment, and then I know that in the sql query

If you are querying several fields, you must add not null, otherwise the value in front of the SQL query is worthwhile, but it happens that the field you are querying is Null

record it here

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324470423&siteId=291194637