提交权限修改
This commit is contained in:
@@ -750,17 +750,17 @@
|
||||
|
||||
(
|
||||
select count(product_id)
|
||||
from iot_product
|
||||
<!-- <where>-->
|
||||
<!-- <if test="deptId != null and deptId != 0">-->
|
||||
<!-- and d.user_id in (SELECT-->
|
||||
<!-- u.user_id-->
|
||||
<!-- FROM-->
|
||||
<!-- sys_user u-->
|
||||
<!-- WHERE-->
|
||||
<!-- u.dept_id IN ( SELECT dept_id FROM sys_dept WHERE find_in_set(#{deptId}, ancestors) OR dept_id = #{deptId}))-->
|
||||
<!-- </if>-->
|
||||
<!-- </where>-->
|
||||
from iot_product p
|
||||
<where>
|
||||
<if test="deptId != null and deptId != 0">
|
||||
and p.tenant_id in (SELECT
|
||||
u.user_id
|
||||
FROM
|
||||
sys_user u
|
||||
WHERE
|
||||
u.dept_id IN ( SELECT dept_id FROM sys_dept WHERE find_in_set(#{deptId}, ancestors) OR dept_id = #{deptId}))
|
||||
</if>
|
||||
</where>
|
||||
) as productCount,
|
||||
|
||||
<!-- <!–告警设备数量–>-->
|
||||
|
||||
Reference in New Issue
Block a user