提交 2a701b5b 编写于 作者: 小柒2012

后台数据库在线查询

上级 c4f9d35a
......@@ -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"));
}
}
{
"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
<!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>
......
......@@ -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>
......
......@@ -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.
先完成此消息的编辑!
想要评论请 注册