Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
不是太高的手
SPTools
提交
2a701b5b
S
SPTools
项目概览
不是太高的手
/
SPTools
通知
4
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
SPTools
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
2a701b5b
编写于
8月 22, 2020
作者:
小
小柒2012
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
后台数据库在线查询
上级
c4f9d35a
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
165 addition
and
2 deletion
+165
-2
src/main/java/com/tools/module/sys/service/impl/SysUserServiceImpl.java
...com/tools/module/sys/service/impl/SysUserServiceImpl.java
+4
-0
src/main/resources/static/data/allWords.json
src/main/resources/static/data/allWords.json
+140
-0
src/main/resources/templates/app/query/list.html
src/main/resources/templates/app/query/list.html
+2
-2
src/main/resources/templates/common/foot.html
src/main/resources/templates/common/foot.html
+10
-0
src/main/resources/templates/common/head.html
src/main/resources/templates/common/head.html
+9
-0
未找到文件。
src/main/java/com/tools/module/sys/service/impl/SysUserServiceImpl.java
浏览文件 @
2a701b5b
...
...
@@ -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"
));
}
}
src/main/resources/static/data/allWords.json
0 → 100644
浏览文件 @
2a701b5b
{
"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
src/main/resources/templates/app/query/list.html
浏览文件 @
2a701b5b
<!DOCTYPE html>
<html
lang=
"en"
xmlns:th=
"http://www.thymeleaf.org"
>
<head
th:replace=
"common/head :: head(link)"
/>
<head
th:replace=
"common/head :: head(link
、、codemirror
)"
/>
<body>
<div
id=
"app"
class=
"layui-fluid"
v-cloak
>
<div
class=
"layui-row"
style=
"padding: 20px"
>
<template>
<i-input
type=
"textarea"
:autosize=
"{minRows: 6,maxRows: 10}"
v-model=
"sql"
placeholder=
"输入任务
"
></i-input>
<i-input
id=
"code"
type=
"textarea"
:autosize=
"{minRows: 6,maxRows: 10}"
v-model=
"sql"
placeholder=
"输入查询语句
"
></i-input>
<br/>
<br/>
<i-button
style=
"float: right"
@
click=
"query"
type=
"primary"
icon=
"ios-search"
>
查询
</i-button>
</template>
...
...
src/main/resources/templates/common/foot.html
浏览文件 @
2a701b5b
...
...
@@ -9,6 +9,16 @@
<script
th:if=
"${#strings.contains(script,'tree')}"
type=
"text/javascript"
th:src=
"@{/lib/ztree/jquery.ztree.all.min.js}"
></script>
<!---codemirror--->
<script
th:if=
"${#strings.contains(script,'codemirror')}"
type=
"text/javascript"
th:src=
"@{/lib/codemirror/lib/codemirror.js}"
></script>
<script
th:if=
"${#strings.contains(script,'codemirror')}"
type=
"text/javascript"
th:src=
"@{/lib/codemirror/addon/hint/show-hint.js}"
></script>
<script
th:if=
"${#strings.contains(script,'codemirror')}"
type=
"text/javascript"
th:src=
"@{/lib/codemirror/addon/hint/sql-hint.js}"
></script>
<script
th:if=
"${#strings.contains(script,'codemirror')}"
type=
"text/javascript"
th:src=
"@{/lib/codemirror/mode/sql/sql.js}"
></script>
<script
th:if=
"${#strings.contains(script,'clipboard')}"
type=
"text/javascript"
th:src=
"@{/lib/clipboard/clipboard.min.js}"
></script>
<script
type=
"text/javascript"
th:src=
"@{/lib/layui/layui.js}"
></script>
...
...
src/main/resources/templates/common/head.html
浏览文件 @
2a701b5b
...
...
@@ -15,6 +15,15 @@
<!---awesome--->
<link
th:if=
"${#strings.contains(link,'awesome')}"
rel=
"stylesheet"
href=
"https://cdn.staticfile.org/font-awesome/4.7.0/css/font-awesome.css"
>
<!---codemirror--->
<link
th:if=
"${#strings.contains(link,'codemirror')}"
rel=
"stylesheet"
th:href=
"@{/lib/codemirror/lib/codemirror.css}"
>
<link
th:if=
"${#strings.contains(link,'codemirror')}"
rel=
"stylesheet"
th:href=
"@{/lib/codemirror/theme/seti.css}"
>
<link
th:if=
"${#strings.contains(link,'codemirror')}"
rel=
"stylesheet"
th:href=
"@{/lib/codemirror/addon/hint/show-hint.css}"
>
<style
type=
"text/css"
>
[
v-cloak
]
{
display
:
none
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录