From 2a701b5bea117041bfecce9e79171debe17e1b0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E6=9F=922012?= <345849402@qq.com> Date: Sat, 22 Aug 2020 08:49:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8E=E5=8F=B0=E6=95=B0=E6=8D=AE=E5=BA=93?= =?UTF-8?q?=E5=9C=A8=E7=BA=BF=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sys/service/impl/SysUserServiceImpl.java | 4 + src/main/resources/static/data/allWords.json | 140 ++++++++++++++++++ .../resources/templates/app/query/list.html | 4 +- src/main/resources/templates/common/foot.html | 10 ++ src/main/resources/templates/common/head.html | 9 ++ 5 files changed, 165 insertions(+), 2 deletions(-) create mode 100644 src/main/resources/static/data/allWords.json diff --git a/src/main/java/com/tools/module/sys/service/impl/SysUserServiceImpl.java b/src/main/java/com/tools/module/sys/service/impl/SysUserServiceImpl.java index 62ce3bf..96195d1 100644 --- a/src/main/java/com/tools/module/sys/service/impl/SysUserServiceImpl.java +++ b/src/main/java/com/tools/module/sys/service/impl/SysUserServiceImpl.java @@ -161,4 +161,8 @@ public class SysUserServiceImpl implements SysUserService { return Result.ok("修改失败"); } } + + public static void main(String[] args) { + System.out.println(MD5Utils.encrypt("admin", "admin2020")); + } } diff --git a/src/main/resources/static/data/allWords.json b/src/main/resources/static/data/allWords.json new file mode 100644 index 0000000..141132e --- /dev/null +++ b/src/main/resources/static/data/allWords.json @@ -0,0 +1,140 @@ +{ + "keyWords": { + "drop": true, + "select": true, + "values": true, + "distinct": true, + "insert": true, + "update": true, + "delete": true, + "when": true, + "out": true, + "into": true, + "not": true, + "and": true, + "else": true, + "by": true, + "limit": true, + "create": true, + "where": true, + "from": true, + "end": true, + "join": true, + "between": true, + "table": true, + "case": true, + "alter": true, + "group": true, + "order": true, + "on": true, + "all": true, + "having": true, + "or": true, + "set": true, + "in": true, + "like": true, + "count": true, + "is": true, + "union": true, + "then": true, + "right": true, + "inner": true, + "asc": true, + "as": true, + "null": true, + "group by": true, + "left": true, + "order by": true, + "desc": true + }, + "tableWords": { + "cp_sku": [ + "skuid", + "cpbh", + "tcbh" + ], + "user_info": [ + "user_id", + "user_token", + "user_name", + "user_type", + "password" + ] + }, + "funWords": { + "weekday(date)": true, + "substring_index(str,delim,count) ": true, + "least(x,y,...)": true, + "sec_to_time(seconds)": true, + "floor(n)": true, + "power(x,y)": true, + "right(str,len) ": true, + "bin(n)": true, + "substring(str,pos)": true, + "quarter(date)": true, + "insert(str,pos,len,newstr)": true, + "pi()": true, + "dayofyear(date)": true, + "minute(time)": true, + "instr(str,substr) ": true, + "upper(str)": true, + "rand(n)": true, + "concat(str1,str2,...) ": true, + "sum(n)": true, + "time_format(time,format)": true, + "date_add(date,interval expr type) ": true, + "date_format(date,format) ": true, + "lpad(str,len,padstr) ": true, + "curtime()": true, + "date_sub(date,interval expr type) ": true, + "truncate(n,d) ": true, + "char(n,...)": true, + "exp(n) ": true, + "greatest(x,y,...) ": true, + "second(time) ": true, + "repeat(str,count)": true, + "period_diff(p1,p2) ": true, + "from_days(n)": true, + "now() ": true, + "length(str)": true, + "sign(n)": true, + "log10(n) ": true, + "substring(str,pos,len)": true, + "locate(substr,str,pos) ": true, + "from_unixtime(unix_timestamp) ": true, + "sqrt(n)": true, + "cos(n) ": true, + "dayofweek(date)": true, + "to_days(date)": true, + "dayname(date)": true, + "oct(n) ": true, + "left(str,len)": true, + "ceiling(n) ": true, + "from_unixtime(unix_timestamp,format) ": true, + "locate(substr,str)": true, + "monthname(date) ": true, + "rpad(str,len,padstr)": true, + "space(n)": true, + "week(date,first) ": true, + "reverse(str) ": true, + "conv(n,from_base,to_base) ": true, + "period_add(p,n)": true, + "convert(字段,数据类型)": true, + "round(n,d)": true, + "year(date) ": true, + "unix_timestamp(date) ": true, + "time_to_sec(time)": true, + "curdate() ": true, + "hex(n) ": true, + "cast(字段 as 数据类型)": true, + "dayofmonth(date)": true, + "log(n) ": true, + "ltrim(str)": true, + "month(date) ": true, + "abs(n)": true, + "replace(str,from_str,to_str) ": true, + "rtrim(str)": true, + "mod(n,m) ": true, + "hour(time)": true + } +} \ No newline at end of file diff --git a/src/main/resources/templates/app/query/list.html b/src/main/resources/templates/app/query/list.html index a92e3ed..c80d870 100644 --- a/src/main/resources/templates/app/query/list.html +++ b/src/main/resources/templates/app/query/list.html @@ -1,11 +1,11 @@ - +
diff --git a/src/main/resources/templates/common/foot.html b/src/main/resources/templates/common/foot.html index 6cdb6cf..0994b54 100644 --- a/src/main/resources/templates/common/foot.html +++ b/src/main/resources/templates/common/foot.html @@ -9,6 +9,16 @@ + + + + + + diff --git a/src/main/resources/templates/common/head.html b/src/main/resources/templates/common/head.html index bc8d3c2..7db1bda 100644 --- a/src/main/resources/templates/common/head.html +++ b/src/main/resources/templates/common/head.html @@ -15,6 +15,15 @@ + + + + + +