Browse Source

修复block查询过慢的问题

skyfffire 3 years ago
parent
commit
0d202ef3b1
1 changed files with 1 additions and 3 deletions
  1. 1 3
      src/main/java/controller/EthMevController.java

+ 1 - 3
src/main/java/controller/EthMevController.java

@@ -89,10 +89,8 @@ public class EthMevController extends Controller {
             renderJson(MyRet.create().setFail().setMsg("block为空。"));
         }
 
-        int block = getParaToInt("block");
-
         renderJson(MyRet.create().setOk().setMsg("查询成功").setData(
-                EthMev.dao.find("select * from t_ethereum_mev_v1 where block=?", block)
+                EthMev.dao.find("select * from t_ethereum_mev_v1 where block=?", getPara("block"))
         ));
     }