ma_id, device_name, device_weight, device_count, `code`, identify_code, type_id, ma_status, lease_scope, `location`, brand, model_name, production_date, working_hours, serial_number, pic_url, js_month_price, js_day_price, `description`, gps_code, on_company, person, person_phone, create_time, creator, deposit, is_active, update_time, update_by, is_operator, specification, province_id, city_id, area_id, video_url, own_id, check_date, check_cycle, is_qc, is_safe_book, is_zone, zone_id, total_up_day, total_lease_day, origina_value, change_status, expiration_time, entry_status, up_down_status, json_data, buy_price, item_type_model, on_project delete from ma_dev_info_properties where ma_id = #{maId} insert into ma_dev_info_properties(ma_id, property_name, property_value, create_time) values ( #{maId}, #{item.propertyName}, #{item.propertyValue}, now() ) UPDATE ma_dev_info SET up_down_status = CASE ma_id WHEN #{data.key} THEN #{data.value} END WHERE ma_id IN #{data.key} UPDATE ma_dev_info device_name = #{deviceName}, device_weight = #{deviceWeight}, device_count = #{deviceCount}, code = #{code}, identify_code = #{identifyCode}, type_id = #{typeId}, ma_status = #{maStatus}, lease_scope = #{leaseScope}, `location` = #{location}, brand = #{brand}, model_name = #{modelName}, production_date = #{productionDate}, working_hours = #{workingHours}, month_lease_price = #{monthLeasePrice}, day_lease_price = #{dayLeasePrice}, js_month_price = #{jsMonthPrice}, js_day_price = #{jsDayPrice}, deposit = #{deposit}, buy_price = #{buyPrice}, is_active = #{isActive}, change_status = #{changeStatus}, expiration_time = #{expirationTime}, entry_status = #{entryStatus}, up_down_status = #{upDownStatus}, pic_url = #{picUrl}, video_url = #{videoUrl}, description = #{description}, gps_code = #{gpsCode}, on_project = #{onProject}, person = #{person}, person_phone = #{personPhone}, update_time = now(), update_by = #{updateBy}, WHERE ma_id = #{maId} UPDATE ma_dev_info SET is_active = 0 where ma_id in #{maId}