mybatis中if标签test 判断等于

1.判断不等于空

<if test="map.user_id != null and map.user_id != ''">

2.判断等于字符串

<if test='map.infodata == "1"'>