Browse Source

如果写了block则不进行正则赛ç选

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

+ 4 - 4
src/main/java/controller/EthMevController.java

@@ -141,19 +141,19 @@ public class EthMevController extends Controller {
             sql = "select * from t_ethereum_mev_v1 where block regexp '[-0-9]' and  hash=? order by block desc limit ?,?";
             ethMevList = EthMev.dao.find(sql, hash, limit1, limit2);
         } else if (StrKit.isBlank(getPara("hash")) && StrKit.isBlank(getPara("dataVague"))) {
-            sql = "select * from t_ethereum_mev_v1 where block regexp '[-0-9]' and  block=? order by block desc limit ?,?";
+            sql = "select * from t_ethereum_mev_v1 where block=? order by block desc limit ?,?";
             ethMevList = EthMev.dao.find(sql, block, limit1, limit2);
         } else if (StrKit.isBlank(getPara("block"))) {
             sql = "select * from t_ethereum_mev_v1 where block regexp '[-0-9]' and hash=? and data like ? order by block desc limit ?,?";
             ethMevList = EthMev.dao.find(sql, hash, dataVague, limit1, limit2);
         } else if (StrKit.isBlank(getPara("hash"))) {
-            sql = "select * from t_ethereum_mev_v1 where block regexp '[-0-9]' and block=? and data like ? order by block desc limit ?,?";
+            sql = "select * from t_ethereum_mev_v1 where block=? and data like ? order by block desc limit ?,?";
             ethMevList = EthMev.dao.find(sql, block, dataVague, limit1, limit2);
         } else if (StrKit.isBlank(getPara("dataVague"))) {
-            sql = "select * from t_ethereum_mev_v1 where block regexp '[-0-9]' and block=? and hash=? order by block desc limit ?,?";
+            sql = "select * from t_ethereum_mev_v1 where block=? and hash=? order by block desc limit ?,?";
             ethMevList = EthMev.dao.find(sql, block, hash, limit1, limit2);
         } else {
-            sql = "select * from t_ethereum_mev_v1 where block regexp '[-0-9]' and block=? and hash=? and data like ? order by block desc limit ?,?";
+            sql = "select * from t_ethereum_mev_v1 where block=? and hash=? and data like ? order by block desc limit ?,?";
             ethMevList = EthMev.dao.find(sql, block, hash, dataVague, limit1, limit2);
         }