and a.device_no=#{query.deviceNo} and a.customer_name=#{query.customerName} and a.agent_name=#{query.agentName} and a.model_no=#{query.modelNo} and a.warranty_state=#{query.warrantyState} and a.start_warranty_date >= #{query.warrantyStartDate} and start_warranty_date <= #{query.warrantyEndDate} update device set data_valid_state=0 where id in #{item}