Home > Back-end >  Mybatis
Mybatis

Time:09-19

Code logic below

Normal log printed



Abnormal log printing (no return to the total, and look at the code logic, there must be an update after the select operation)

CodePudding user response:

What is the problem? Related to druid cache?

CodePudding user response:

Then you should see inside selectByMap method is how to handle exceptions, has a retry out abnormal? So the exception again to perform a select, and then print the select the log

CodePudding user response:

refer to the second floor qybao response:
then you should check the selectByMap method is how to handle exceptions, inside has a retry out abnormal? So the exception again to perform a select, and then print the select log


And print the select - have not the original query condition code logic on the diagram, the outer call of a for loop