更新运维部门查询的判断

This commit is contained in:
panshuling321 2022-05-24 17:35:09 +08:00
parent ddd4696f5b
commit 68bcc1aeda

View File

@ -41,9 +41,14 @@
<if test="params.tenantId !=null and params.tenantId!=''">
and tenant_id=#{params.tenantId}
</if>
<if test="params.parentDeptId !=null and params.parentDeptId!=''">
and parent_dept_id=#{params.parentDeptId}
</if>
<choose>
<when test="params.parentDeptId !=null and params.parentDeptId!=''">
and parent_dept_id=#{params.parentDeptId}
</when>
<otherwise>
and parent_dept_id is null
</otherwise>
</choose>
</select>