When the parameter comparing and judging non-empty string or in mybatis frame:
<If test = "mnyType == '1'"> because mybatis OGNL expression is resolved, in OGNL expression 'a' would be parsed into a string, and because Java is strongly typed, char and string will cause not equal, so if SQL tag will not be parsed.
Thus a single character to be written to or in double quotes .toString () can, such as the correct wording
<if test = "mnyType == '1'.toString() " 或者<if test = ' mnyType == "1" '>