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