mybatis empty string

 When I was measuring the data just now, an empty string parameter was passed in the front desk, and the ==0 judgment condition was used in the backend XML. The result was satisfied. After checking for a long time, I deeply thought that my SQL was wrong. . . .
It turned out that mybatis automatically regarded empty strings as 0. . .

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325259413&siteId=291194637