Pārlūkot izejas kodu

request.tenantId和request.deptId

tags/V1.3.3^2
suqin pirms 11 mēnešiem
vecāks
revīzija
e4f34675f0
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  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 Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt