select product_id, product_name,protocol_code,transport, category_id, category_name, tenant_id, tenant_name, is_sys, is_authorize, mqtt_account,mqtt_password,mqtt_secret ,status, device_type, network_method, vertificate_method, create_time, update_time, img_url,remark from iot_product insert into iot_product product_name, category_id, category_name, tenant_id, tenant_name, is_sys, is_authorize, mqtt_account, mqtt_password, mqtt_secret, status, device_type, network_method, vertificate_method, del_flag, create_by, create_time, update_by, update_time, remark, img_url, protocol_code, transport, #{productName}, #{categoryId}, #{categoryName}, #{tenantId}, #{tenantName}, #{isSys}, #{isAuthorize}, #{mqttAccount}, #{mqttPassword}, #{mqttSecret}, #{status}, #{deviceType}, #{networkMethod}, #{vertificateMethod}, #{delFlag}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, #{remark}, #{imgUrl}, #{protocolCode,jdbcType=VARCHAR}, #{transport,jdbcType=VARCHAR}, update iot_product product_name = #{productName}, category_id = #{categoryId}, category_name = #{categoryName}, tenant_id = #{tenantId}, tenant_name = #{tenantName}, is_sys = #{isSys}, is_authorize = #{isAuthorize}, mqtt_account = #{mqttAccount}, mqtt_password = #{mqttPassword}, mqtt_secret = #{mqttSecret}, status = #{status}, device_type = #{deviceType}, network_method = #{networkMethod}, vertificate_method = #{vertificateMethod}, del_flag = #{delFlag}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, remark = #{remark}, img_url = #{imgUrl}, protocol_code = #{protocolCode,jdbcType=VARCHAR}, transport = #{transport,jdbcType=VARCHAR}, where product_id = #{productId} update iot_product set status=#{status} where product_id = #{productId} update iot_product set things_models_json=#{thingsModelsJson} where product_id = #{productId} delete from iot_product where product_id = #{productId} delete from iot_product where product_id in #{productId} delete from iot_things_model where product_id in #{productId}