|
@@ -190,6 +190,10 @@
|
|
|
<if test="deviceDto.deptOrgId != null and deviceDto.deptOrgId != 0 ">
|
|
|
and d.DEPT_ORG_ID =#{deviceDto.deptOrgId}
|
|
|
</if>
|
|
|
+ <if test="deviceDto.deptOrgId == null or deviceDto.deptOrgId == 0 ">
|
|
|
+ and d.DEPT_ORG_ID is null
|
|
|
+ </if>
|
|
|
+
|
|
|
<if test="deviceDto.enableState != null ">
|
|
|
and d.ENABLE_STATE =#{deviceDto.enableState}
|
|
|
</if>
|