From e136ca3138261da197901b0ab336f5f92b9c18f6 Mon Sep 17 00:00:00 2001 From: leej1012 Date: Mon, 14 Oct 2024 15:49:42 +0800 Subject: [PATCH] Update selectBestApr --- .../Explorer/src/main/resources/mapper/NodeInspireMapper.xml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/back-end-projects/Explorer/src/main/resources/mapper/NodeInspireMapper.xml b/back-end-projects/Explorer/src/main/resources/mapper/NodeInspireMapper.xml index 6c5aea79..4136a5a6 100644 --- a/back-end-projects/Explorer/src/main/resources/mapper/NodeInspireMapper.xml +++ b/back-end-projects/Explorer/src/main/resources/mapper/NodeInspireMapper.xml @@ -65,7 +65,10 @@ FROM tbl_node_inspire a INNER JOIN tbl_node_info_off_chain b ON a.public_key = b.public_key + INNER JOIN tbl_node_info_on_chain c + ON a.public_key = c.public_key WHERE b.bad_actor = 0 + AND c.progress+0 100 ORDER BY a.user_apy+0 DESC LIMIT 1;