浏览代码

request.tenantId和request.deptId

tags/V1.3.3^2
suqin 11 个月前
父节点
当前提交
e4f34675f0
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      tuoheng-service/tuoheng-admin/src/main/resources/mapper/IotEquipmentMapper.xml

+ 2
- 2
tuoheng-service/tuoheng-admin/src/main/resources/mapper/IotEquipmentMapper.xml 查看文件

@@ -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>

正在加载...
取消
保存