mirror of
https://gitee.com/beecue/fastbee.git
synced 2025-12-18 17:05:55 +08:00
zhaoSecond
This commit is contained in:
@@ -105,6 +105,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
select device_id, device_name,product_id, serial_number, status,is_shadow ,is_custom_location,things_model_value, active_time from iot_device
|
||||
</sql>
|
||||
|
||||
<select id="selectAllDeviceShortList1" parameterType="com.ruoyi.iot.domain.Device" resultMap="DeviceAllShortResult">
|
||||
select device_id, device_name, product_name, user_name, serial_number, firmware_version, status,rssi,is_shadow ,
|
||||
is_custom_location, active_time,network_address,longitude,latitude from iot_device
|
||||
<where>
|
||||
<if test="userName != null and userName != ''"> and user_name like concat('%', #{userName}, '%')</if>
|
||||
</where>
|
||||
</select>
|
||||
<select id="selectDeviceList" parameterType="com.ruoyi.iot.domain.Device" resultMap="DeviceResult">
|
||||
<include refid="selectDeviceVo"/>
|
||||
<where>
|
||||
|
||||
@@ -30,8 +30,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="productName != null and productName != ''"> and product_name like concat('%', #{productName}, '%')</if>
|
||||
<if test="tenantName != null and tenantName != ''"> and tenant_name like concat('%', #{tenantName}, '%')</if>
|
||||
<if test="isSys != null "> and is_sys = #{isSys}</if>
|
||||
<if test="isSys == null "> and is_sys = 1</if>
|
||||
</where>
|
||||
order by create_time desc
|
||||
order by create_time desc
|
||||
</select>
|
||||
|
||||
<select id="selectFirmwareByFirmwareId" parameterType="Long" resultMap="FirmwareResult">
|
||||
|
||||
Reference in New Issue
Block a user