sql转换字段类型:用于处理前台传递的String类型导致类型转化问题 age 字段为int类型 <if test="age != null and age != ''"> AND cast (age VARCHAR ) = #{age} </if>