Prechádzať zdrojové kódy

修复block查询过慢的问题

skyfffire 3 rokov pred
rodič
commit
0d202ef3b1

+ 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"))
         ));
     }