[update] 支持通过小程序下发自定义命令,优化管理员可彻底删除页面功能

This commit is contained in:
xiaoyi
2021-11-18 20:28:31 +08:00
parent 542f9fa448
commit 9cd0c02dfc
7 changed files with 383 additions and 23 deletions

View File

@@ -209,11 +209,11 @@
</update>
<delete id="deleteIotDeviceById" parameterType="Long">
update iot_device set del_flag= '2' where device_id = #{deviceId}
delete from iot_device where device_id = #{deviceId}
</delete>
<delete id="deleteIotDeviceByIds" parameterType="String">
update iot_device set del_flag= '2' where device_id in
delete from iot_device where device_id in
<foreach item="deviceId" collection="array" open="(" separator="," close=")">
#{deviceId}
</foreach>
@@ -259,8 +259,10 @@
<select id="getDeviceInfoByDeviceId" parameterType="IotDevice" resultType="com.alibaba.fastjson.JSONObject">
SELECT
t2.device_status_id as deviceStatusId,
t3.device_name AS deviceName,
t3.remark,
t2.remark as statusRemark,
t1.device_id AS deviceId,
t1.device_num AS deviceNum,
t2.is_online AS isOnline,