Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私の写真には問題があります。私は mybatis を使用し、countByExample メソッドは MyBatis Generator によって生成されました。私を助けてそれを見ることができますか?
https://i.stack.imgur.com/e3arE.png
https://i.stack.imgur.com/WOp1f.png
jobCtrlExampleメソッド呼び出し間で再利用しているようです。その場合、新しい条件を設定する前に、以前の条件をクリアする必要があります。おそらく、次の行を追加すると修正されます。
jobCtrlExample
jobCtrlExample.clear();
メソッドごとに新しいサンプル クラスを作成することをお勧めします。