This commit is contained in:
vipg
2025-11-25 15:55:07 +08:00
parent 94c07397a0
commit 6817626669

View File

@@ -213,7 +213,8 @@ SELECT
cd.year AS close_year,
cd.month AS close_month,
cd.day AS close_day,
cp.close_price AS close_price
cp.close_price AS close_price,
cf.close_fee AS close_fee
FROM trade t
LEFT JOIN remark r ON t.id = r.trade_id AND r.deleted = FALSE
LEFT JOIN open_date od ON t.id = od.trade_id AND od.deleted = FALSE
@@ -223,6 +224,7 @@ LEFT JOIN open_price op ON t.id = op.trade_id AND op.deleted = FALSE
LEFT JOIN open_fee of ON t.id = of.trade_id AND of.deleted = FALSE
LEFT JOIN close_date cd ON t.id = cd.trade_id AND cd.deleted = FALSE
LEFT JOIN close_price cp ON t.id = cp.trade_id AND cp.deleted = FALSE
LEFT JOIN close_fee cf ON t.id = cf.trade_id AND cf.deleted = FALSE
WHERE t.deleted = FALSE;
RAISE NOTICE '4⃣✅ trade_info_view 已创建/更新';