Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
workflow-core
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
黄夏豪
workflow-core
Commits
ec4a65ff
提交
ec4a65ff
authored
3月 17, 2021
作者:
ww1xhqc
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[数据模型] 增加hutool工具
上级
7ca1f467
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
57 行增加
和
11 行删除
+57
-11
ModelController.java
.../workflowcore/model_layer/controller/ModelController.java
+1
-1
SearchColumnInfoVo.java
...orkflowcore/model_layer/entity/vo/SearchColumnInfoVo.java
+1
-0
SearchTableInfoVo.java
...workflowcore/model_layer/entity/vo/SearchTableInfoVo.java
+2
-0
UpdateTableInfoVO.java
...workflowcore/model_layer/entity/vo/UpdateTableInfoVO.java
+25
-0
ModelService.java
...m/tykj/workflowcore/model_layer/service/ModelService.java
+7
-4
ClassTypeLength.java
.../tykj/workflowcore/model_layer/utils/ClassTypeLength.java
+4
-4
CreateTableUtil.java
.../tykj/workflowcore/model_layer/utils/CreateTableUtil.java
+1
-1
application.yml
src/main/resources/application.yml
+1
-1
db.setting
src/main/resources/db.setting
+15
-0
没有找到文件。
src/main/java/com/tykj/workflowcore/model_layer/controller/ModelController.java
浏览文件 @
ec4a65ff
...
@@ -146,7 +146,7 @@ public class ModelController {
...
@@ -146,7 +146,7 @@ public class ModelController {
return
ResultUtil
.
failed
(
"表已经存在!"
);
return
ResultUtil
.
failed
(
"表已经存在!"
);
}
}
}
}
return
ResultUtil
.
success
(
"
表不存在
新建成功!"
);
return
ResultUtil
.
success
(
"新建成功!"
);
}
}
/**
/**
...
...
src/main/java/com/tykj/workflowcore/model_layer/entity/vo/SearchColumnInfoVo.java
浏览文件 @
ec4a65ff
...
@@ -18,5 +18,6 @@ import lombok.NoArgsConstructor;
...
@@ -18,5 +18,6 @@ import lombok.NoArgsConstructor;
public
class
SearchColumnInfoVo
extends
JpaCustomPage
{
public
class
SearchColumnInfoVo
extends
JpaCustomPage
{
private
Integer
dbId
;
private
Integer
dbId
;
private
String
dbName
;
private
String
dbName
;
}
}
src/main/java/com/tykj/workflowcore/model_layer/entity/vo/SearchTableInfoVo.java
浏览文件 @
ec4a65ff
...
@@ -17,6 +17,8 @@ import lombok.NoArgsConstructor;
...
@@ -17,6 +17,8 @@ import lombok.NoArgsConstructor;
@Data
@Data
public
class
SearchTableInfoVo
extends
JpaCustomPage
{
public
class
SearchTableInfoVo
extends
JpaCustomPage
{
private
Integer
id
;
private
String
tableName
;
private
String
tableName
;
private
String
tableCnName
;
private
String
tableCnName
;
...
...
src/main/java/com/tykj/workflowcore/model_layer/entity/vo/UpdateTableInfoVO.java
0 → 100644
浏览文件 @
ec4a65ff
package
com
.
tykj
.
workflowcore
.
model_layer
.
entity
.
vo
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
/**
* @ClassName UpdateTableInfoVO
* @Description TODO
* @Author WWW
* @Date 2021/3/16 13:43
* @Version 1.0
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public
class
UpdateTableInfoVO
{
private
Integer
dbId
;
private
TableVO
tableVO
;
}
src/main/java/com/tykj/workflowcore/model_layer/service/ModelService.java
浏览文件 @
ec4a65ff
...
@@ -3,10 +3,7 @@ package com.tykj.workflowcore.model_layer.service;
...
@@ -3,10 +3,7 @@ package com.tykj.workflowcore.model_layer.service;
import
com.tykj.workflowcore.model_layer.entity.ColumnInfo
;
import
com.tykj.workflowcore.model_layer.entity.ColumnInfo
;
import
com.tykj.workflowcore.model_layer.entity.TableInfo
;
import
com.tykj.workflowcore.model_layer.entity.TableInfo
;
import
com.tykj.workflowcore.model_layer.entity.vo.QueryCondition
;
import
com.tykj.workflowcore.model_layer.entity.vo.*
;
import
com.tykj.workflowcore.model_layer.entity.vo.SearchColumnInfoVo
;
import
com.tykj.workflowcore.model_layer.entity.vo.SearchTableInfoVo
;
import
com.tykj.workflowcore.model_layer.entity.vo.TableVO
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Page
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -85,4 +82,10 @@ public interface ModelService {
...
@@ -85,4 +82,10 @@ public interface ModelService {
* @return
* @return
*/
*/
List
complexQuery
(
String
tableName
,
List
<
QueryCondition
>
queryConditions
);
List
complexQuery
(
String
tableName
,
List
<
QueryCondition
>
queryConditions
);
void
updateTable
(
UpdateTableInfoVO
updateTableInfoVO
);
}
}
src/main/java/com/tykj/workflowcore/model_layer/utils/ClassTypeLength.java
浏览文件 @
ec4a65ff
...
@@ -15,15 +15,15 @@ public class ClassTypeLength {
...
@@ -15,15 +15,15 @@ public class ClassTypeLength {
private
static
String
Integer
=
"class java.lang.Integer"
;
private
static
String
Integer
=
"class java.lang.Integer"
;
private
static
String
Double
=
"class java.lang.Double"
;
private
static
String
Double
=
"class java.lang.Double"
;
public
static
void
setLength
(
ColumnInfo
columnInfo
,
java
.
lang
.
reflect
.
Type
genericType
){
public
static
void
setLength
(
ColumnInfo
columnInfo
,
String
genericType
){
if
(
STRING
.
equals
(
genericType
.
toString
()
)){
if
(
STRING
.
equals
(
genericType
)){
columnInfo
.
setLength
(
255
);
columnInfo
.
setLength
(
255
);
}
else
if
(
Integer
.
equals
(
genericType
.
toString
()
))
{
}
else
if
(
Integer
.
equals
(
genericType
))
{
columnInfo
.
setLength
(
11
);
columnInfo
.
setLength
(
11
);
}
else
if
(
Double
.
equals
(
genericType
.
toString
()
))
{
}
else
if
(
Double
.
equals
(
genericType
))
{
columnInfo
.
setLength
(
10
);
columnInfo
.
setLength
(
10
);
}
}
else
{
else
{
...
...
src/main/java/com/tykj/workflowcore/model_layer/utils/CreateTableUtil.java
浏览文件 @
ec4a65ff
...
@@ -42,7 +42,7 @@ public class CreateTableUtil {
...
@@ -42,7 +42,7 @@ public class CreateTableUtil {
"\" column=\""
+
columnVO
.
getFieldName
()
+
"\"/>\n"
;
"\" column=\""
+
columnVO
.
getFieldName
()
+
"\"/>\n"
;
}
}
xmlMapping
+=
"
</class>"
+
xmlMapping
+=
" </class>"
+
"</hibernate-mapping>"
;
"</hibernate-mapping>"
;
return
xmlMapping
;
return
xmlMapping
;
...
...
src/main/resources/application.yml
浏览文件 @
ec4a65ff
...
@@ -9,4 +9,4 @@ spring:
...
@@ -9,4 +9,4 @@ spring:
hibernate
:
hibernate
:
ddl-auto
:
update
ddl-auto
:
update
server
:
server
:
port
:
8
9
00
port
:
8
8
00
src/main/resources/db.setting
0 → 100644
浏览文件 @
ec4a65ff
## db.setting文件
url = jdbc:mysql://47.106.142.73:3306/www2?useSSL=false&serverTimezone=UTC&characterEncoding=utf-8&nullCatalogMeansCurrent=true
user = root
pass = Huang123+
## 可选配置
# 是否在日志中显示执行的SQL
showSql = true
# 是否格式化显示的SQL
formatSql = true
# 是否显示SQL参数
showParams = true
# 打印SQL的日志等级,默认debug,可以是info、warn、error
sqlLevel = info
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论