设备激活接口

This commit is contained in:
ALEI_ALEI
2024-12-13 11:22:16 +08:00
parent 68a8fe80e0
commit 800f8e72ee
3 changed files with 36 additions and 0 deletions

View File

@ -1006,4 +1006,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</where>
</select>
<update id="updateDeviceActivationStatus">
update iot_device
set status = 3,
active_time=#{activationTime},
update_time=#{activationTime},
tenant_id=#{tenantId},
tenant_name=#{tenantName},
longitude=#{longitude},
latitude=#{latitude},
img_url=#{imgUrl}
where serial_number = #{serialNumber}
</update>
</mapper>