Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
workflow
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
2
议题
2
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
黄夏豪
workflow
Commits
d64bab52
提交
d64bab52
authored
4月 23, 2021
作者:
黄夏豪
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[基础模块] 增加了/xml和/workflow/xml的静态资源句柄 以修复在主系统无法获取XML的问题
[工作流模块] 修复了根据页面搜索实体时STRING无法转为INTEGER的问题
上级
6dff6c9b
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
29 行增加
和
14 行删除
+29
-14
WebMvcConfig.java
.../java/com/tykj/workflowcore/base/config/WebMvcConfig.java
+2
-0
ModelController.java
.../workflowcore/model_layer/controller/ModelController.java
+1
-6
FormPageController.java
...owcore/workflow_editer/controller/FormPageController.java
+3
-2
SearchPageEntityVo.java
...lowcore/workflow_editer/entity/vo/SearchPageEntityVo.java
+21
-0
FormPageServiceImpl.java
...ore/workflow_editer/service/impl/FormPageServiceImpl.java
+2
-6
没有找到文件。
src/main/java/com/tykj/workflowcore/base/config/WebMvcConfig.java
浏览文件 @
d64bab52
...
@@ -33,6 +33,8 @@ public class WebMvcConfig {
...
@@ -33,6 +33,8 @@ public class WebMvcConfig {
public
void
addResourceHandlers
(
ResourceHandlerRegistry
registry
)
{
public
void
addResourceHandlers
(
ResourceHandlerRegistry
registry
)
{
registry
.
addResourceHandler
(
"/workflow/xml/**"
)
registry
.
addResourceHandler
(
"/workflow/xml/**"
)
.
addResourceLocations
(
"file:"
+
System
.
getProperty
(
"user.dir"
)
+
"\\xml\\"
);
.
addResourceLocations
(
"file:"
+
System
.
getProperty
(
"user.dir"
)
+
"\\xml\\"
);
registry
.
addResourceHandler
(
"/xml/**"
)
.
addResourceLocations
(
"file:"
+
System
.
getProperty
(
"user.dir"
)
+
"\\xml\\"
);
}
}
};
};
}
}
...
...
src/main/java/com/tykj/workflowcore/model_layer/controller/ModelController.java
浏览文件 @
d64bab52
...
@@ -51,12 +51,7 @@ public class ModelController {
...
@@ -51,12 +51,7 @@ public class ModelController {
@PostMapping
(
"/getAllEntity"
)
@PostMapping
(
"/getAllEntity"
)
public
ResponseEntity
getAllEntity
(
@RequestBody
SearchTableInfoVo
searchTableInfoVo
)
{
public
ResponseEntity
getAllEntity
(
@RequestBody
SearchTableInfoVo
searchTableInfoVo
)
{
Page
<
TableInfo
>
tableInfos
;
Page
<
TableInfo
>
tableInfos
;
try
{
tableInfos
=
modelService
.
pageAllEntities
(
searchTableInfoVo
);
tableInfos
=
modelService
.
pageAllEntities
(
searchTableInfoVo
);
}
catch
(
SQLException
throwables
)
{
return
ResultUtil
.
failed
(
"数据查询失败!"
);
}
return
ResultUtil
.
success
(
tableInfos
,
"数据查询成功!"
);
return
ResultUtil
.
success
(
tableInfos
,
"数据查询成功!"
);
}
}
...
...
src/main/java/com/tykj/workflowcore/workflow_editer/controller/FormPageController.java
浏览文件 @
d64bab52
...
@@ -5,6 +5,7 @@ import com.tykj.workflowcore.model_layer.entity.TableInfo;
...
@@ -5,6 +5,7 @@ import com.tykj.workflowcore.model_layer.entity.TableInfo;
import
com.tykj.workflowcore.model_layer.entity.vo.TableAndColumnInfoVO
;
import
com.tykj.workflowcore.model_layer.entity.vo.TableAndColumnInfoVO
;
import
com.tykj.workflowcore.workflow_editer.entity.FormPage
;
import
com.tykj.workflowcore.workflow_editer.entity.FormPage
;
//import com.tykj.workflowcore.workflow_editer.entity.PageEntity;
//import com.tykj.workflowcore.workflow_editer.entity.PageEntity;
import
com.tykj.workflowcore.workflow_editer.entity.vo.SearchPageEntityVo
;
import
com.tykj.workflowcore.workflow_editer.service.FormPageService
;
import
com.tykj.workflowcore.workflow_editer.service.FormPageService
;
//import com.tykj.workflowcore.workflow_editer.service.PageEntityService;
//import com.tykj.workflowcore.workflow_editer.service.PageEntityService;
import
com.tykj.workflowcore.workflow_editer.entity.vo.FormPageVo
;
import
com.tykj.workflowcore.workflow_editer.entity.vo.FormPageVo
;
...
@@ -72,9 +73,9 @@ public class FormPageController {
...
@@ -72,9 +73,9 @@ public class FormPageController {
@ApiOperation
(
"通过页面id查询所对应的数据模型"
)
@ApiOperation
(
"通过页面id查询所对应的数据模型"
)
@PostMapping
(
"/findByPageIds"
)
@PostMapping
(
"/findByPageIds"
)
public
List
<
TableInfo
>
findByPageIds
(
@RequestBody
List
<
Integer
>
pageIds
){
public
List
<
TableInfo
>
findByPageIds
(
@RequestBody
SearchPageEntityVo
searchPageEntityVo
){
return
formPageService
.
findByPageIds
(
pageIds
);
return
formPageService
.
findByPageIds
(
searchPageEntityVo
.
getPageIds
()
);
}
}
...
...
src/main/java/com/tykj/workflowcore/workflow_editer/entity/vo/SearchPageEntityVo.java
0 → 100644
浏览文件 @
d64bab52
package
com
.
tykj
.
workflowcore
.
workflow_editer
.
entity
.
vo
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.util.List
;
/**
* @author HuangXiahao
* @version V1.0
* @class SearchPageEntityVo
* @packageName com.tykj.workflowcore.workflow_editer.entity.vo
**/
@AllArgsConstructor
@NoArgsConstructor
@Data
public
class
SearchPageEntityVo
{
List
<
Integer
>
pageIds
;
}
src/main/java/com/tykj/workflowcore/workflow_editer/service/impl/FormPageServiceImpl.java
浏览文件 @
d64bab52
...
@@ -85,7 +85,7 @@ public class FormPageServiceImpl implements FormPageService {
...
@@ -85,7 +85,7 @@ public class FormPageServiceImpl implements FormPageService {
public
List
<
TableInfo
>
findByPageIds
(
List
<
Integer
>
pageIds
)
{
public
List
<
TableInfo
>
findByPageIds
(
List
<
Integer
>
pageIds
)
{
PredicateBuilder
<
FormPage
>
builder
=
Specifications
.
and
();
PredicateBuilder
<
FormPage
>
builder
=
Specifications
.
and
();
builder
.
in
(
"id"
,
pageIds
);
builder
.
in
(
"id"
,
pageIds
.
toArray
()
);
List
<
FormPage
>
tableInfoList
=
formPageMapper
.
findAll
(
builder
.
build
());
List
<
FormPage
>
tableInfoList
=
formPageMapper
.
findAll
(
builder
.
build
());
StringBuffer
entityIds
=
new
StringBuffer
();
StringBuffer
entityIds
=
new
StringBuffer
();
for
(
int
i
=
0
;
i
<
tableInfoList
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
tableInfoList
.
size
();
i
++)
{
...
@@ -96,14 +96,10 @@ public class FormPageServiceImpl implements FormPageService {
...
@@ -96,14 +96,10 @@ public class FormPageServiceImpl implements FormPageService {
entityIds
.
deleteCharAt
(
entityIds
.
length
()-
1
);
entityIds
.
deleteCharAt
(
entityIds
.
length
()-
1
);
}
}
}
}
String
[]
split
=
entityIds
.
toString
().
split
(
","
);
String
[]
split
=
entityIds
.
toString
().
split
(
","
);
List
<
String
>
lastEntityIds
=
Arrays
.
asList
(
split
).
stream
().
distinct
().
collect
(
Collectors
.
toList
());
Integer
[]
ids
=
Arrays
.
stream
(
split
).
mapToInt
(
Integer:
:
parseInt
).
boxed
().
toArray
(
Integer
[]::
new
);
//todo
Integer
[]
ids
=
(
Integer
[])
lastEntityIds
.
toArray
();
SearchTableInfoVo
searchTableInfoVo
=
new
SearchTableInfoVo
();
SearchTableInfoVo
searchTableInfoVo
=
new
SearchTableInfoVo
();
searchTableInfoVo
.
setIds
(
ids
);
searchTableInfoVo
.
setIds
(
ids
);
return
modelService
.
listAllEntities
(
searchTableInfoVo
);
return
modelService
.
listAllEntities
(
searchTableInfoVo
);
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论