select * from 表 where (字段=条件 or 条件='')
条件が空でない場合、 SQL ステートメントは次と同等になります。select * from 表 where 字段=条件;
条件が空の場合、 SQL ステートメントは次と同等になります。select * from 表 where ''='';
このように、クエリ条件が空の場合は、デフォルトですべてのデータがクエリされ、クエリ結果が空でない場合は、対応するデータがクエリされます。
edge:(where条件)
ここで、 f_name は '%${name}%' のようなもの、 (f_status=#{status} または #{status}='') および (f_data_node=#{dataNode} または #{dataNode}='') および (f_warehousing_scheme のような ' %${warehousingScheme}%' または '%${warehousingScheme}%' のような '%%')")