如果student_sex =0,不执行sql,可能空字符串在此处转换中与0相等。
<if test="student_sex != null and student_sex !=''"> AND student_sex =#{student_sex } </if>
如果student_sex =0,不执行sql,可能空字符串在此处转换中与0相等。
<if test="student_sex != null and student_sex !=''"> AND student_sex =#{student_sex } </if>