Jelajahi Sumber

修复block查询过慢的问题

skyfffire 3 tahun lalu
induk
melakukan
0d202ef3b1
1 mengubah file dengan 1 tambahan dan 3 penghapusan
  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"))
         ));
     }