From b28d95111f32cb6f2e24387f117fd205c84d02d6 Mon Sep 17 00:00:00 2001 From: teddy Date: Tue, 20 Jan 2026 11:44:12 +0900 Subject: [PATCH] =?UTF-8?q?=EC=B6=94=EB=A1=A0=20=EA=B2=B0=EA=B3=BC=20geom?= =?UTF-8?q?=20=ED=85=8C=EC=9D=B4=EB=B8=94=EC=A0=80=EC=9E=A5=20=EC=BF=BC?= =?UTF-8?q?=EB=A6=AC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Inference/InferenceResultRepositoryImpl.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/kamco/cd/kamcoback/postgres/repository/Inference/InferenceResultRepositoryImpl.java b/src/main/java/com/kamco/cd/kamcoback/postgres/repository/Inference/InferenceResultRepositoryImpl.java index 3d51412b..c2449f2b 100644 --- a/src/main/java/com/kamco/cd/kamcoback/postgres/repository/Inference/InferenceResultRepositoryImpl.java +++ b/src/main/java/com/kamco/cd/kamcoback/postgres/repository/Inference/InferenceResultRepositoryImpl.java @@ -217,11 +217,15 @@ public class InferenceResultRepositoryImpl implements InferenceResultRepositoryC msl.m2_model_batch_id, msl.m3_model_batch_id ) - inner join tb_map_sheet_anal_data_inference msadi - on msadi.anal_uid = msl.anal_uid + INNER JOIN tb_map_sheet_anal_data_inference msadi + ON msadi.anal_uid = msl.anal_uid AND r.map_id ~ '^[0-9]+$' - AND r.map_id::bigint = msadi.map_sheet_num - where msl.anal_uid = :analUid + AND r.map_id::bigint = msadi.map_sheet_num + WHERE msl.anal_uid = :analUid + AND r.before_c is not null + AND r.before_p is not null + AND r.after_c is not null + AND r.after_p is not null ORDER BY r.uid, r.created_date DESC NULLS LAST ) x ON CONFLICT (result_uid)