<if test="userType != null and userType == '0'.toString()">
AND (ud.department_type = '0' or ud.department_type is null)
</if>
mybatis中的查询条件允许为空时的sql语句
最新推荐文章于 2022-08-14 01:20:41 发布
<if test="userType != null and userType == '0'.toString()">
AND (ud.department_type = '0' or ud.department_type is null)
</if>