0

I have a problem, in my picture. I use mybatis and countByExample method was generated by MyBatis Generator. Can u help me and see it?

https://i.stack.imgur.com/e3arE.png

https://i.stack.imgur.com/WOp1f.png

dungtran
  • 15
  • 6
  • help me, see my picture – dungtran Feb 29 '20 at 16:13
  • I'm sorry, but I couldn't understand your question. Please elaborate. The best way to explain the problem is to create a small demo project with assertions like [these](https://github.com/harawata/mybatis-issues). – ave Mar 01 '20 at 15:19

1 Answers1

0

It looks like you are reusing jobCtrlExample between method calls. if you do that, then you need to clear the previous conditions before you set new conditions. Probably adding this line will fix it:

jobCtrlExample.clear();

It would be better to create a new example class for every method.

Jeff Butler
  • 991
  • 6
  • 11