!1282 refactor(iot): 移除升级任务中的设备名称设置

Merge pull request !1282 from 陈玄礼/feature/iot-shelly
This commit is contained in:
芋道源码
2025-03-16 13:03:05 +00:00
committed by Gitee
24 changed files with 216 additions and 626 deletions

View File

@@ -4,21 +4,4 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.iocoder.yudao.module.iot.dal.mysql.ota.IotOtaUpgradeRecordMapper">
<!-- TODO @li看看是不是可以通过 mybatis plus 写哈,更好适配多 db -->
<select id="getOtaUpgradeRecordCount" resultType="java.lang.Long">
select count(*)
from iot_ota_upgrade_record
where task_id = #{taskId}
and device_name like concat('%', #{deviceName}, '%')
and status = #{status}
</select>
<!-- TODO @li看看是不是可以通过 mybatis plus 写哈,更好适配多 db -->
<select id="getOtaUpgradeRecordStatistics" resultType="java.lang.Long">
select count(*)
from iot_ota_upgrade_record
where firmware_id = #{firmwareId}
and status = #{status}
</select>
</mapper>