Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzdst
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzdst
提交
31e9b0bf
提交
31e9b0bf
编写于
1月 04, 2021
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
zoo457790531 发布系统代码 [ibz-dst,应用]
上级
644790f1
变更
10
隐藏空白字符变更
内嵌
并排
正在显示
10 个修改的文件
包含
84 行增加
和
51 行删除
+84
-51
h2_table.xml
ibzdst-core/src/main/resources/liquibase/h2_table.xml
+17
-17
DABuildResource.java
...pi/src/main/java/cn/ibizlab/api/rest/DABuildResource.java
+8
-4
DAMetricResource.java
...i/src/main/java/cn/ibizlab/api/rest/DAMetricResource.java
+8
-4
DstDataSourceResource.java
.../main/java/cn/ibizlab/api/rest/DstDataSourceResource.java
+4
-2
DstSystemResource.java
.../src/main/java/cn/ibizlab/api/rest/DstSystemResource.java
+4
-2
ExecResultResource.java
...src/main/java/cn/ibizlab/api/rest/ExecResultResource.java
+8
-4
MetaEntityResource.java
...src/main/java/cn/ibizlab/api/rest/MetaEntityResource.java
+8
-4
MetaModelResource.java
.../src/main/java/cn/ibizlab/api/rest/MetaModelResource.java
+11
-6
RuleEngineResource.java
...src/main/java/cn/ibizlab/api/rest/RuleEngineResource.java
+8
-4
RuleItemResource.java
...i/src/main/java/cn/ibizlab/api/rest/RuleItemResource.java
+8
-4
未找到文件。
ibzdst-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
31e9b0bf
...
...
@@ -4,7 +4,7 @@
<!--输出实体[DA_BUILD]数据结构 -->
<changeSet
author=
"
a_A_5d9d78509
"
id=
"tab-da_build-71-1"
>
<changeSet
author=
"
root
"
id=
"tab-da_build-71-1"
>
<createTable
tableName=
"IBZDABUILD"
>
<column
name=
"BUILDID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_DA_BUILD_BUILDID"
/>
...
...
@@ -32,7 +32,7 @@
<!--输出实体[DA_CHART]数据结构 -->
<changeSet
author=
"
a_A_5d9d78509
"
id=
"tab-da_chart-22-2"
>
<changeSet
author=
"
root
"
id=
"tab-da_chart-22-2"
>
<createTable
tableName=
"IBZDACHART"
>
<column
name=
"CHARTID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_DA_CHART_CHARTID"
/>
...
...
@@ -54,7 +54,7 @@
<!--输出实体[DA_METRIC]数据结构 -->
<changeSet
author=
"
a_A_5d9d78509
"
id=
"tab-da_metric-63-3"
>
<changeSet
author=
"
root
"
id=
"tab-da_metric-63-3"
>
<createTable
tableName=
"IBZDAMETRIC"
>
<column
name=
"DA_METRICID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_DA_METRIC_DA_METRICID"
/>
...
...
@@ -82,7 +82,7 @@
<!--输出实体[DA_REPORT]数据结构 -->
<changeSet
author=
"
a_A_5d9d78509
"
id=
"tab-da_report-24-4"
>
<changeSet
author=
"
root
"
id=
"tab-da_report-24-4"
>
<createTable
tableName=
"IBZDAREPORT"
>
<column
name=
"REPORTID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_DA_REPORT_REPORTID"
/>
...
...
@@ -104,7 +104,7 @@
<!--输出实体[DST_DATASOURCE]数据结构 -->
<changeSet
author=
"
a_A_5d9d78509
"
id=
"tab-dst_datasource-6-5"
>
<changeSet
author=
"
root
"
id=
"tab-dst_datasource-6-5"
>
<createTable
tableName=
"IBZDATASOURCE"
>
<column
name=
"DSID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_DST_DATASOURCE_DSID"
/>
...
...
@@ -120,7 +120,7 @@
<!--输出实体[DST_SYSTEM]数据结构 -->
<changeSet
author=
"
a_A_5d9d78509
"
id=
"tab-dst_system-5-6"
>
<changeSet
author=
"
root
"
id=
"tab-dst_system-5-6"
>
<createTable
tableName=
"IBZPSSYSTEM"
>
<column
name=
"PSSYSTEMID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_DST_SYSTEM_PSSYSTEMID"
/>
...
...
@@ -140,7 +140,7 @@
<!--输出实体[RU_EXECLOG]数据结构 -->
<changeSet
author=
"
a_A_5d9d78509
"
id=
"tab-ru_execlog-31-7"
>
<changeSet
author=
"
root
"
id=
"tab-ru_execlog-31-7"
>
<createTable
tableName=
"IBZRULELOG"
>
<column
name=
"RU_EXECLOGID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_RU_EXECLOG_RU_EXECLOGID"
/>
...
...
@@ -170,7 +170,7 @@
<!--输出实体[RU_EXECRESULT]数据结构 -->
<changeSet
author=
"
a_A_5d9d78509
"
id=
"tab-ru_execresult-46-8"
>
<changeSet
author=
"
root
"
id=
"tab-ru_execresult-46-8"
>
<createTable
tableName=
"IBZRULERESULT"
>
<column
name=
"RU_EXECRESULTID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_RU_EXECRESULT_RU_EXECRESULT"
/>
...
...
@@ -210,7 +210,7 @@
<!--输出实体[META_DATASET]数据结构 -->
<changeSet
author=
"
a_A_5d9d78509
"
id=
"tab-meta_dataset-2-9"
>
<changeSet
author=
"
root
"
id=
"tab-meta_dataset-2-9"
>
<createTable
tableName=
"IBZDATASET"
>
<column
name=
"DATASETID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_META_DATASET_DATASETID"
/>
...
...
@@ -232,7 +232,7 @@
<!--输出实体[META_ENTITY]数据结构 -->
<changeSet
author=
"
a_A_5d9d78509
"
id=
"tab-meta_entity-13-10"
>
<changeSet
author=
"
root
"
id=
"tab-meta_entity-13-10"
>
<createTable
tableName=
"IBZENTITY"
>
<column
name=
"ENTITYID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_META_ENTITY_ENTITYID"
/>
...
...
@@ -264,7 +264,7 @@
<!--输出实体[META_FIELD]数据结构 -->
<changeSet
author=
"
a_A_5d9d78509
"
id=
"tab-meta_field-7-11"
>
<changeSet
author=
"
root
"
id=
"tab-meta_field-7-11"
>
<createTable
tableName=
"IBZFIELD"
>
<column
name=
"FIELDID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_META_FIELD_FIELDID"
/>
...
...
@@ -328,7 +328,7 @@
<!--输出实体[META_MODEL]数据结构 -->
<changeSet
author=
"
a_A_5d9d78509
"
id=
"tab-meta_model-64-12"
>
<changeSet
author=
"
root
"
id=
"tab-meta_model-64-12"
>
<createTable
tableName=
"IBZMODEL"
>
<column
name=
"MODELID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_META_MODEL_MODELID"
/>
...
...
@@ -354,7 +354,7 @@
<!--输出实体[META_MODULE]数据结构 -->
<changeSet
author=
"
a_A_5d9d78509
"
id=
"tab-meta_module-7-13"
>
<changeSet
author=
"
root
"
id=
"tab-meta_module-7-13"
>
<createTable
tableName=
"IBZMODULE"
>
<column
name=
"MODULEID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_META_MODULE_MODULEID"
/>
...
...
@@ -372,7 +372,7 @@
<!--输出实体[META_RELATION]数据结构 -->
<changeSet
author=
"
a_A_5d9d78509
"
id=
"tab-meta_relation-6-14"
>
<changeSet
author=
"
root
"
id=
"tab-meta_relation-6-14"
>
<createTable
tableName=
"IBZRELATION"
>
<column
name=
"RELATIONID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_META_RELATION_RELATIONID"
/>
...
...
@@ -404,7 +404,7 @@
<!--输出实体[RU_ENGINE]数据结构 -->
<changeSet
author=
"
a_A_5d9d78509
"
id=
"tab-ru_engine-45-15"
>
<changeSet
author=
"
root
"
id=
"tab-ru_engine-45-15"
>
<createTable
tableName=
"IBZRULEENGINE"
>
<column
name=
"ENGINEID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_RU_ENGINE_ENGINEID"
/>
...
...
@@ -432,7 +432,7 @@
<!--输出实体[RU_ITEM]数据结构 -->
<changeSet
author=
"
a_A_5d9d78509
"
id=
"tab-ru_item-79-16"
>
<changeSet
author=
"
root
"
id=
"tab-ru_item-79-16"
>
<createTable
tableName=
"IBZRULE"
>
<column
name=
"RULEID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_RU_ITEM_RULEID"
/>
...
...
@@ -469,7 +469,7 @@
<!--输出实体[DA_BUILD]外键关系 -->
<!--输出实体[DA_CHART]外键关系 -->
<!--输出实体[DA_METRIC]外键关系 -->
<changeSet
author=
"
a_A_5d9d78509
"
id=
"fk-da_metric-63-17"
>
<changeSet
author=
"
root
"
id=
"fk-da_metric-63-17"
>
<addForeignKeyConstraint
baseColumnNames=
"BUILDID"
baseTableName=
"IBZDAMETRIC"
constraintName=
"DER1N_DA_METRIC_DA_BUILD_BUILD"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"BUILDID"
referencedTableName=
"IBZDABUILD"
validate=
"true"
/>
</changeSet>
<!--输出实体[DA_REPORT]外键关系 -->
...
...
ibzdst-provider/ibzdst-provider-api/src/main/java/cn/ibizlab/api/rest/DABuildResource.java
浏览文件 @
31e9b0bf
...
...
@@ -132,9 +132,11 @@ public class DABuildResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzdst-DABuild-ExportFile-all')"
)
@ApiOperation
(
value
=
"批量处理[导出文件]"
,
tags
=
{
"分析"
},
notes
=
"批量处理[导出文件]"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/dabuilds/
{dabuild_id}/
exportfilebatch"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/dabuilds/exportfilebatch"
)
public
ResponseEntity
<
Boolean
>
exportFileBatch
(
@RequestBody
List
<
DABuildDTO
>
dabuilddtos
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dabuildService
.
exportFileBatch
(
dabuildMapping
.
toDomain
(
dabuilddtos
)));
List
<
DABuild
>
domains
=
dabuildMapping
.
toDomain
(
dabuilddtos
);
boolean
result
=
dabuildService
.
exportFileBatch
(
domains
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
result
);
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzdst-DABuild-Run-all')"
)
...
...
@@ -149,9 +151,11 @@ public class DABuildResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzdst-DABuild-Run-all')"
)
@ApiOperation
(
value
=
"批量处理[运行]"
,
tags
=
{
"分析"
},
notes
=
"批量处理[运行]"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/dabuilds/
{dabuild_id}/
runbatch"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/dabuilds/runbatch"
)
public
ResponseEntity
<
Boolean
>
runBatch
(
@RequestBody
List
<
DABuildDTO
>
dabuilddtos
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dabuildService
.
runBatch
(
dabuildMapping
.
toDomain
(
dabuilddtos
)));
List
<
DABuild
>
domains
=
dabuildMapping
.
toDomain
(
dabuilddtos
);
boolean
result
=
dabuildService
.
runBatch
(
domains
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
result
);
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzdst-DABuild-Save-all')"
)
...
...
ibzdst-provider/ibzdst-provider-api/src/main/java/cn/ibizlab/api/rest/DAMetricResource.java
浏览文件 @
31e9b0bf
...
...
@@ -148,9 +148,11 @@ public class DAMetricResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzdst-DAMetric-SyncRule-all')"
)
@ApiOperation
(
value
=
"批量处理[同步指标到规则]"
,
tags
=
{
"指标"
},
notes
=
"批量处理[同步指标到规则]"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/dametrics/
{dametric_id}/
syncrulebatch"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/dametrics/syncrulebatch"
)
public
ResponseEntity
<
Boolean
>
syncRuleBatch
(
@RequestBody
List
<
DAMetricDTO
>
dametricdtos
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dametricService
.
syncRuleBatch
(
dametricMapping
.
toDomain
(
dametricdtos
)));
List
<
DAMetric
>
domains
=
dametricMapping
.
toDomain
(
dametricdtos
);
boolean
result
=
dametricService
.
syncRuleBatch
(
domains
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
result
);
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzdst-DAMetric-searchDefault-all')"
)
...
...
@@ -294,9 +296,11 @@ public class DAMetricResource {
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dametricdto
);
}
@ApiOperation
(
value
=
"批量处理[根据分析指标]"
,
tags
=
{
"指标"
},
notes
=
"批量处理[根据分析指标]"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/dabuilds/{dabuild_id}/dametrics/
{dametric_id}/
syncrulebatch"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/dabuilds/{dabuild_id}/dametrics/syncrulebatch"
)
public
ResponseEntity
<
Boolean
>
syncRuleByDABuild
(
@PathVariable
(
"dabuild_id"
)
String
dabuild_id
,
@RequestBody
List
<
DAMetricDTO
>
dametricdtos
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dametricService
.
syncRuleBatch
(
dametricMapping
.
toDomain
(
dametricdtos
)));
List
<
DAMetric
>
domains
=
dametricMapping
.
toDomain
(
dametricdtos
);
boolean
result
=
dametricService
.
syncRuleBatch
(
domains
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
result
);
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzdst-DAMetric-searchDefault-all')"
)
@ApiOperation
(
value
=
"根据分析获取数据集"
,
tags
=
{
"指标"
}
,
notes
=
"根据分析获取数据集"
)
...
...
ibzdst-provider/ibzdst-provider-api/src/main/java/cn/ibizlab/api/rest/DstDataSourceResource.java
浏览文件 @
31e9b0bf
...
...
@@ -126,9 +126,11 @@ public class DstDataSourceResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzdst-DstDataSource-BuildDS-all')"
)
@ApiOperation
(
value
=
"批量处理[buildDS]"
,
tags
=
{
"数据源"
},
notes
=
"批量处理[buildDS]"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/dstdatasources/
{dstdatasource_id}/
builddsbatch"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/dstdatasources/builddsbatch"
)
public
ResponseEntity
<
Boolean
>
buildDSBatch
(
@RequestBody
List
<
DstDataSourceDTO
>
dstdatasourcedtos
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dstdatasourceService
.
buildDSBatch
(
dstdatasourceMapping
.
toDomain
(
dstdatasourcedtos
)));
List
<
DstDataSource
>
domains
=
dstdatasourceMapping
.
toDomain
(
dstdatasourcedtos
);
boolean
result
=
dstdatasourceService
.
buildDSBatch
(
domains
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
result
);
}
@ApiOperation
(
value
=
"检查数据源"
,
tags
=
{
"数据源"
},
notes
=
"检查数据源"
)
...
...
ibzdst-provider/ibzdst-provider-api/src/main/java/cn/ibizlab/api/rest/DstSystemResource.java
浏览文件 @
31e9b0bf
...
...
@@ -147,9 +147,11 @@ public class DstSystemResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzdst-DstSystem-SyncSysModel-all')"
)
@ApiOperation
(
value
=
"批量处理[同步系统模型]"
,
tags
=
{
"系统"
},
notes
=
"批量处理[同步系统模型]"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/dstsystems/
{dstsystem_id}/
syncsysmodelbatch"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/dstsystems/syncsysmodelbatch"
)
public
ResponseEntity
<
Boolean
>
syncSysModelBatch
(
@RequestBody
List
<
DstSystemDTO
>
dstsystemdtos
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dstsystemService
.
syncSysModelBatch
(
dstsystemMapping
.
toDomain
(
dstsystemdtos
)));
List
<
DstSystem
>
domains
=
dstsystemMapping
.
toDomain
(
dstsystemdtos
);
boolean
result
=
dstsystemService
.
syncSysModelBatch
(
domains
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
result
);
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzdst-DstSystem-searchDefault-all')"
)
...
...
ibzdst-provider/ibzdst-provider-api/src/main/java/cn/ibizlab/api/rest/ExecResultResource.java
浏览文件 @
31e9b0bf
...
...
@@ -133,9 +133,11 @@ public class ExecResultResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzdst-ExecResult-DeleteAsync-all')"
)
@ApiOperation
(
value
=
"批量处理[DeleteAsync]"
,
tags
=
{
"执行结果"
},
notes
=
"批量处理[DeleteAsync]"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/execresults/
{execresult_id}/
deleteasyncbatch"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/execresults/deleteasyncbatch"
)
public
ResponseEntity
<
Boolean
>
deleteAsyncBatch
(
@RequestBody
List
<
ExecResultDTO
>
execresultdtos
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
execresultService
.
deleteAsyncBatch
(
execresultMapping
.
toDomain
(
execresultdtos
)));
List
<
ExecResult
>
domains
=
execresultMapping
.
toDomain
(
execresultdtos
);
boolean
result
=
execresultService
.
deleteAsyncBatch
(
domains
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
result
);
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzdst-ExecResult-Save-all')"
)
...
...
@@ -165,9 +167,11 @@ public class ExecResultResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzdst-ExecResult-SaveAsync-all')"
)
@ApiOperation
(
value
=
"批量处理[SaveAsync]"
,
tags
=
{
"执行结果"
},
notes
=
"批量处理[SaveAsync]"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/execresults/
{execresult_id}/
saveasyncbatch"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/execresults/saveasyncbatch"
)
public
ResponseEntity
<
Boolean
>
saveAsyncBatch
(
@RequestBody
List
<
ExecResultDTO
>
execresultdtos
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
execresultService
.
saveAsyncBatch
(
execresultMapping
.
toDomain
(
execresultdtos
)));
List
<
ExecResult
>
domains
=
execresultMapping
.
toDomain
(
execresultdtos
);
boolean
result
=
execresultService
.
saveAsyncBatch
(
domains
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
result
);
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzdst-ExecResult-searchDefault-all')"
)
...
...
ibzdst-provider/ibzdst-provider-api/src/main/java/cn/ibizlab/api/rest/MetaEntityResource.java
浏览文件 @
31e9b0bf
...
...
@@ -133,9 +133,11 @@ public class MetaEntityResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzdst-MetaEntity-GetDefaultModel-all')"
)
@ApiOperation
(
value
=
"批量处理[GetDefaultModel]"
,
tags
=
{
"实体"
},
notes
=
"批量处理[GetDefaultModel]"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/metaentities/
{metaentity_id}/
getdefaultmodelbatch"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/metaentities/getdefaultmodelbatch"
)
public
ResponseEntity
<
Boolean
>
getDefaultModelBatch
(
@RequestBody
List
<
MetaEntityDTO
>
metaentitydtos
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
metaentityService
.
getDefaultModelBatch
(
metaentityMapping
.
toDomain
(
metaentitydtos
)));
List
<
MetaEntity
>
domains
=
metaentityMapping
.
toDomain
(
metaentitydtos
);
boolean
result
=
metaentityService
.
getDefaultModelBatch
(
domains
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
result
);
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzdst-MetaEntity-Save-all')"
)
...
...
@@ -273,9 +275,11 @@ public class MetaEntityResource {
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
metaentitydto
);
}
@ApiOperation
(
value
=
"批量处理[根据系统实体]"
,
tags
=
{
"实体"
},
notes
=
"批量处理[根据系统实体]"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/dstsystems/{dstsystem_id}/metaentities/
{metaentity_id}/
getdefaultmodelbatch"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/dstsystems/{dstsystem_id}/metaentities/getdefaultmodelbatch"
)
public
ResponseEntity
<
Boolean
>
getDefaultModelByDstSystem
(
@PathVariable
(
"dstsystem_id"
)
String
dstsystem_id
,
@RequestBody
List
<
MetaEntityDTO
>
metaentitydtos
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
metaentityService
.
getDefaultModelBatch
(
metaentityMapping
.
toDomain
(
metaentitydtos
)));
List
<
MetaEntity
>
domains
=
metaentityMapping
.
toDomain
(
metaentitydtos
);
boolean
result
=
metaentityService
.
getDefaultModelBatch
(
domains
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
result
);
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzdst-MetaEntity-Save-all')"
)
@ApiOperation
(
value
=
"根据系统保存实体"
,
tags
=
{
"实体"
},
notes
=
"根据系统保存实体"
)
...
...
ibzdst-provider/ibzdst-provider-api/src/main/java/cn/ibizlab/api/rest/MetaModelResource.java
浏览文件 @
31e9b0bf
...
...
@@ -59,9 +59,10 @@ public class MetaModelResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzdst-MetaModel-ExportFile-all')"
)
@ApiOperation
(
value
=
"批量处理[导出文件]"
,
tags
=
{
"模型"
},
notes
=
"批量处理[导出文件]"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/metamodels/
{metamodel_id}/
exportfilebatch"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/metamodels/exportfilebatch"
)
public
ResponseEntity
<
Void
>
exportFileBatch
(
@RequestBody
List
<
MetaModelDTO
>
metamodeldtos
)
{
metamodelService
.
exportFileBatch
(
metamodelMapping
.
toDomain
(
metamodeldtos
));
List
<
MetaModel
>
domains
=
metamodelMapping
.
toDomain
(
metamodeldtos
);
boolean
result
=
metamodelService
.
exportFileBatch
(
domains
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
build
();
}
...
...
@@ -145,9 +146,11 @@ public class MetaModelResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzdst-MetaModel-Change-all')"
)
@ApiOperation
(
value
=
"批量处理[change]"
,
tags
=
{
"模型"
},
notes
=
"批量处理[change]"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/metamodels/
{metamodel_id}/
changebatch"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/metamodels/changebatch"
)
public
ResponseEntity
<
Boolean
>
changeBatch
(
@RequestBody
List
<
MetaModelDTO
>
metamodeldtos
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
metamodelService
.
changeBatch
(
metamodelMapping
.
toDomain
(
metamodeldtos
)));
List
<
MetaModel
>
domains
=
metamodelMapping
.
toDomain
(
metamodeldtos
);
boolean
result
=
metamodelService
.
changeBatch
(
domains
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
result
);
}
@ApiOperation
(
value
=
"检查模型"
,
tags
=
{
"模型"
},
notes
=
"检查模型"
)
...
...
@@ -168,9 +171,11 @@ public class MetaModelResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzdst-MetaModel-ImportFile-all')"
)
@ApiOperation
(
value
=
"批量处理[导入文件]"
,
tags
=
{
"模型"
},
notes
=
"批量处理[导入文件]"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/metamodels/
{metamodel_id}/
importfilebatch"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/metamodels/importfilebatch"
)
public
ResponseEntity
<
Boolean
>
importFileBatch
(
@RequestBody
List
<
MetaModelDTO
>
metamodeldtos
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
metamodelService
.
importFileBatch
(
metamodelMapping
.
toDomain
(
metamodeldtos
)));
List
<
MetaModel
>
domains
=
metamodelMapping
.
toDomain
(
metamodeldtos
);
boolean
result
=
metamodelService
.
importFileBatch
(
domains
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
result
);
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzdst-MetaModel-Save-all')"
)
...
...
ibzdst-provider/ibzdst-provider-api/src/main/java/cn/ibizlab/api/rest/RuleEngineResource.java
浏览文件 @
31e9b0bf
...
...
@@ -126,9 +126,11 @@ public class RuleEngineResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzdst-RuleEngine-Check-all')"
)
@ApiOperation
(
value
=
"批量处理[校验]"
,
tags
=
{
"规则引擎"
},
notes
=
"批量处理[校验]"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ruleengines/
{ruleengine_id}/
checkbatch"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ruleengines/checkbatch"
)
public
ResponseEntity
<
Boolean
>
checkBatch
(
@RequestBody
List
<
RuleEngineDTO
>
ruleenginedtos
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
ruleengineService
.
checkBatch
(
ruleengineMapping
.
toDomain
(
ruleenginedtos
)));
List
<
RuleEngine
>
domains
=
ruleengineMapping
.
toDomain
(
ruleenginedtos
);
boolean
result
=
ruleengineService
.
checkBatch
(
domains
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
result
);
}
@ApiOperation
(
value
=
"检查规则引擎"
,
tags
=
{
"规则引擎"
},
notes
=
"检查规则引擎"
)
...
...
@@ -149,9 +151,11 @@ public class RuleEngineResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzdst-RuleEngine-Run-all')"
)
@ApiOperation
(
value
=
"批量处理[运行]"
,
tags
=
{
"规则引擎"
},
notes
=
"批量处理[运行]"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ruleengines/
{ruleengine_id}/
runbatch"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ruleengines/runbatch"
)
public
ResponseEntity
<
Boolean
>
runBatch
(
@RequestBody
List
<
RuleEngineDTO
>
ruleenginedtos
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
ruleengineService
.
runBatch
(
ruleengineMapping
.
toDomain
(
ruleenginedtos
)));
List
<
RuleEngine
>
domains
=
ruleengineMapping
.
toDomain
(
ruleenginedtos
);
boolean
result
=
ruleengineService
.
runBatch
(
domains
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
result
);
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzdst-RuleEngine-Save-all')"
)
...
...
ibzdst-provider/ibzdst-provider-api/src/main/java/cn/ibizlab/api/rest/RuleItemResource.java
浏览文件 @
31e9b0bf
...
...
@@ -127,9 +127,11 @@ public class RuleItemResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzdst-RuleItem-BuildRuleFile-all')"
)
@ApiOperation
(
value
=
"批量处理[生成规则文件]"
,
tags
=
{
"规则"
},
notes
=
"批量处理[生成规则文件]"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ruleitems/
{ruleitem_id}/
buildrulefilebatch"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ruleitems/buildrulefilebatch"
)
public
ResponseEntity
<
Boolean
>
buildRuleFileBatch
(
@RequestBody
List
<
RuleItemDTO
>
ruleitemdtos
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
ruleitemService
.
buildRuleFileBatch
(
ruleitemMapping
.
toDomain
(
ruleitemdtos
)));
List
<
RuleItem
>
domains
=
ruleitemMapping
.
toDomain
(
ruleitemdtos
);
boolean
result
=
ruleitemService
.
buildRuleFileBatch
(
domains
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
result
);
}
@ApiOperation
(
value
=
"检查规则"
,
tags
=
{
"规则"
},
notes
=
"检查规则"
)
...
...
@@ -150,9 +152,11 @@ public class RuleItemResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzdst-RuleItem-Modelchange-all')"
)
@ApiOperation
(
value
=
"批量处理[modelchange]"
,
tags
=
{
"规则"
},
notes
=
"批量处理[modelchange]"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ruleitems/
{ruleitem_id}/
modelchangebatch"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ruleitems/modelchangebatch"
)
public
ResponseEntity
<
Boolean
>
modelchangeBatch
(
@RequestBody
List
<
RuleItemDTO
>
ruleitemdtos
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
ruleitemService
.
modelchangeBatch
(
ruleitemMapping
.
toDomain
(
ruleitemdtos
)));
List
<
RuleItem
>
domains
=
ruleitemMapping
.
toDomain
(
ruleitemdtos
);
boolean
result
=
ruleitemService
.
modelchangeBatch
(
domains
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
result
);
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzdst-RuleItem-Save-all')"
)
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录