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