Skip to content

Commit

Permalink
Update getAddressStakingInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
leej1012 committed May 28, 2024
1 parent cf120ae commit 9b093de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1627,7 +1627,7 @@ private void putStakingInfoList4Onto(String stakingInfo, NodeInfoOffChain nodeIn
boolean allowStake = progress != null && !"100.00%".equals(progress);
// 判断节点存在是否存在
int nodeStatus = progress == null ? 0 : 1;
String userApy = Optional.ofNullable(nodeInfoOffChain.getUserApy()).orElse("");
String userApy = progress == null ? "" : Optional.ofNullable(nodeInfoOffChain.getUserApy()).orElse("");
JSONObject stakingInfoObj = JSONObject.parseObject(stakingInfo);
Long consensusPos = stakingInfoObj.getLong("consensusPos");
Long freezePos = stakingInfoObj.getLong("freezePos");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,6 @@
FROM tbl_node_info_off_chain a
LEFT JOIN tbl_node_info_on_chain b ON a.public_key = b.public_key
LEFT JOIN tbl_node_inspire c ON a.public_key = c.public_key
ORDER BY c.user_apy IS NULL, b.progress = '100.00%', a.public_key
ORDER BY b.progress IS NULL, b.progress = '100.00%', a.public_key
</select>
</mapper>

0 comments on commit 9b093de

Please sign in to comment.