|
@@ -88,10 +88,12 @@
|
|
|
<if test="deviceDto.deptOrgId != null and deviceDto.deptOrgId != 0 ">
|
|
|
and d.DEPT_ORG_ID =#{deviceDto.deptOrgId}
|
|
|
</if>
|
|
|
+ <if test="deviceDto.deviceTypeId != null and deviceDto.deviceTypeId != 0 ">
|
|
|
+ and d.DEVICE_TYPE_ID =#{deviceDto.deviceTypeId}
|
|
|
+ </if>
|
|
|
<if test="deviceDto.enableState != null ">
|
|
|
and d.ENABLE_STATE =#{deviceDto.enableState}
|
|
|
</if>
|
|
|
-
|
|
|
<if test="deviceDto.userType!=null and deviceDto.userType!=-999 and deviceDto.userType!=-9999 and deviceDto.programItems != null and deviceDto.programItems.size() > 0">
|
|
|
<if test="deviceDto.permissonType == 5 or deviceDto.permissonType == 2">
|
|
|
and ( d.DEPT_ORG_ID in
|