Will automatically switch to the empty string if the tag judgment Mybatis empty string == 0, the parameter is 0

For this problem, there are two solutions.

1. When the incoming parameters 0, is determined only! = Null can be.

2. 0 is converted to String type, you can solve this problem.

Guess you like

Origin www.cnblogs.com/azhqiang/p/11002087.html