更新运维部门查询的判断

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!=''"> <if test="params.tenantId !=null and params.tenantId!=''">
and tenant_id=#{params.tenantId} and tenant_id=#{params.tenantId}
</if> </if>
<if test="params.parentDeptId !=null and params.parentDeptId!=''"> <choose>
and parent_dept_id=#{params.parentDeptId} <when test="params.parentDeptId !=null and params.parentDeptId!=''">
</if> and parent_dept_id=#{params.parentDeptId}
</when>
<otherwise>
and parent_dept_id is null
</otherwise>
</choose>
</select> </select>