增加 删除标记

This commit is contained in:
Xiao
2025-01-21 19:01:55 +08:00
parent 8f2f0ea7c6
commit 429b96313e

View File

@@ -344,7 +344,7 @@
from iot_device d from iot_device d
left join iot_product p on p.product_id=d.product_id left join iot_product p on p.product_id=d.product_id
<where> <where>
and del_flag = '0' and d.del_flag = '0'
<if test="productId != null ">and d.product_id = #{productId}</if> <if test="productId != null ">and d.product_id = #{productId}</if>
<if test="deptId != null and deptId != 0 and showChild != null and showChild"> <if test="deptId != null and deptId != 0 and showChild != null and showChild">
and d.tenant_id in (SELECT u.user_id FROM sys_user u and d.tenant_id in (SELECT u.user_id FROM sys_user u