-- 更新股票元数据信息
UPDATE stock_metadata
SET
    last_full_update = NOW(),
    data_start_date = '{data_start_date}',
    data_end_date = '{data_end_date}',
    record_count = {record_count},
    status = 1,
    latest_price = {latest_price},
    latest_date = '{data_end_date}',
    latest_pe_ttm = {latest_pe_ttm},
    latest_pb = {latest_pb},
    latest_total_mv = {latest_total_mv}
WHERE ts_code = '{ts_code}'