From e5dae89a1b549dda5e5a6c661c75d72c5e960526 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 28 Aug 2026 13:16:10 +0300 Subject: [PATCH] 036 left join for json, exceptions --- Application.cfc | 6 ++-- json.cfm | 81 ++++++++++++++++++++++++++++++-------------- mod/compute_payg.cfm | 8 ++++- payg.cfm | 3 ++ 4 files changed, 70 insertions(+), 28 deletions(-) diff --git a/Application.cfc b/Application.cfc index 2ad515b..fc8cde1 100644 --- a/Application.cfc +++ b/Application.cfc @@ -108,10 +108,12 @@ ---> - - + + + + diff --git a/json.cfm b/json.cfm index 2900425..a04c0c1 100644 --- a/json.cfm +++ b/json.cfm @@ -38,31 +38,59 @@ function gaussianRound(numeric number, numeric precision = 0) { - - - + + + + + + + + + + + + + + @@ -137,6 +165,9 @@ function gaussianRound(numeric number, numeric precision = 0) { + + + #serializeJSON(temp.out)# diff --git a/mod/compute_payg.cfm b/mod/compute_payg.cfm index 52d67f1..f39c6e3 100644 --- a/mod/compute_payg.cfm +++ b/mod/compute_payg.cfm @@ -7,6 +7,7 @@ + @@ -444,7 +445,12 @@ from a m.dimension_2_name FROM qSpec s - FULL OUTER JOIN qUnifiedMetric m ON ( + + FULL OUTER JOIN + + LEFT OUTER JOIN + + qUnifiedMetric m ON ( s.sku_code=m.code AND s.serviceStart <= m.dt AND (m.dt <= s.serviceEnd OR s.serviceEnd IS NULL) diff --git a/payg.cfm b/payg.cfm index 18ea901..3506b21 100644 --- a/payg.cfm +++ b/payg.cfm @@ -22,10 +22,12 @@ +