insert into rq_iot_opeation_fill(device_id,device_code,device_name,device_category_id,create_time,dept_id,order_id,is_report) values (#{item.deviceId},#{item.deviceCode},#{item.deviceName}, #{item.deviceCategoryId},#{item.createTime},#{item.deptId},#{item.orderId},#{item.isReport}) insert into rq_iot_device_run_log (dept_id,device_id,device_code,point_code,fill_content,create_time,point_name,total_run_time,is_sum) values (#{item.deptId},#{item.deviceId},#{item.deviceCode}, #{item.pointCode},#{item.fillContent},#{item.createTime},#{item.pointName},#{item.totalRunTime},#{item.isSum}) insert into rq_iot_device_run_log (dept_id, device_id, device_code, point_code, fill_content, create_time, point_name, total_run_time,is_sum) values (#{deptId}, #{deviceId}, #{deviceCode}, #{pointCode}, #{fillContent}, #{createTime}, #{pointName}, #{totalRunTime},#{isSum}) update rq_iot_device_run_log set fill_content = #{fillContent} where device_code = #{deviceCode} and point_name = #{pointName} and DATE(create_time) = #{createTime} and is_sum = 0 update rq_iot_device_run_log set total_run_time = #{totalRunTime} where device_code = #{deviceCode} and point_name = #{pointName} and DATE(create_time) = #{createTime} and is_sum = 1 update rq_iot_opeation_fill set dept_id = #{deptId} where 1=1 and device_id in #{id} update rq_iot_opeation_fill_order set order_status = '3', reason = #{reason} where id = #{id} update rq_iot_opeation_fill set is_fill = '3' where order_id = #{id} update rq_iot_opeation_fill set is_fill = '1' where device_id = #{deviceId} and DATE(create_time) = DATE(#{createTime}) delete from rq_iot_opeation_fill where order_id = #{orderId} delete from rq_iot_opeation_fill_order where id = #{orderId} update rq_iot_opeation_fill_order set order_status = 1,update_time = NOW() where id = #{id} update rq_iot_opeation_fill_order set order_status = 0 where id = #{id} update rq_iot_opeation_fill_order set order_status = 2,update_time = NOW() where id = #{id} update rq_iot_device set location= #{location} where device_code = #{deviceCode}