MyBatis: Processing when there are multiple method parameters

Ordinary parameters can directly use arg0, arg1, param1, param2, etc. If there are objects in multiple parameters, the formats arg0.xxx and param1.yyy should be used.
If the parameters are marked with the @Param annotation, they cannot be referenced using arg0, arg1, param1, and param2.

If the input is a List, you need to use the #{list[0]} method or the #{param1[0]} method.
If the input is an array, you need to use the #{array[0]} method. Or #{param1[0]} method.

Guess you like

Origin blog.csdn.net/amadeus_liu2/article/details/132752933