Regarding the problem that one-to-many children have multiple pieces of data, the database can check it but the code can only get one piece.

This kind of problem is usually caused by careless copying and pasting by programmers. The problem lies in the mapper mapping.

Just remove this, because the ID is unique, so even if there are multiple ones, he can only get one.

Guess you like

Origin blog.csdn.net/qq_50158494/article/details/121559283