|
|
@@ -56,11 +56,11 @@ |
|
|
|
from th_iot_equipment |
|
|
|
<where> |
|
|
|
<if test="1 == 1"> and mark = 1 </if> |
|
|
|
<if test="request.tenantId != null and request.tenantId != ''"> and tenant_id = #{tenantId} </if> |
|
|
|
<if test="request.tenantId != null and request.tenantId != ''"> and tenant_id = #{request.tenantId} </if> |
|
|
|
<if test="request.deptIdList != null and request.deptIdList.size() > 0"> |
|
|
|
and dept_id in |
|
|
|
<foreach item="deptId" collection="deptIdList" open="(" separator="," close=")"> |
|
|
|
#{deptId} |
|
|
|
#{request.deptId} |
|
|
|
</foreach> |
|
|
|
</if> |
|
|
|
</where> |