Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzlite
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzlite
提交
04fbce83
提交
04fbce83
编写于
3月 02, 2021
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
zhouweidong 发布系统代码 [ibz-lite,应用]
上级
e8bf5131
变更
10
隐藏空白字符变更
内嵌
并排
正在显示
10 个修改的文件
包含
54 行增加
和
63 行删除
+54
-63
meta-dynamic-models.ts
...rc/mock/entity/meta-dynamic-models/meta-dynamic-models.ts
+6
-6
meta-dynamic-model-grid-view-base.vue
...mic-model-grid-view/meta-dynamic-model-grid-view-base.vue
+1
-1
meta-dynamic-model-service-base.ts
...ice/meta-dynamic-model/meta-dynamic-model-service-base.ts
+6
-6
MetaDynamicModelMapper.java
...a/cn/ibizlab/core/lite/mapper/MetaDynamicModelMapper.java
+1
-1
IMetaDynamicModelService.java
...n/ibizlab/core/lite/service/IMetaDynamicModelService.java
+1
-1
MetaDynamicModelServiceImpl.java
...b/core/lite/service/impl/MetaDynamicModelServiceImpl.java
+3
-3
h2_table.xml
ibzlite-core/src/main/resources/liquibase/h2_table.xml
+19
-19
MetaDynamicModelMapper.xml
...s/mapper/lite/metadynamicmodel/MetaDynamicModelMapper.xml
+6
-15
systemResource.json
...te-core/src/main/resources/permission/systemResource.json
+1
-1
MetaDynamicModelResource.java
...in/java/cn/ibizlab/api/rest/MetaDynamicModelResource.java
+10
-10
未找到文件。
app_web/src/mock/entity/meta-dynamic-models/meta-dynamic-models.ts
浏览文件 @
04fbce83
...
...
@@ -353,9 +353,9 @@ mock.onGet(new RegExp(/^\/metadynamicmodels\/fetchdefault(\?[\w-./?%&=,]*)*$/)).
return
[
status
,
records
?
records
:
[]];
});
// Fetch
Findbak
mock
.
onGet
(
new
RegExp
(
/^
\/
metadynamicmodels
\/
fetch
findbak
$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:metadynamicmodel 方法: Fetch
Findbak
"
);
// Fetch
DynaInst
mock
.
onGet
(
new
RegExp
(
/^
\/
metadynamicmodels
\/
fetch
dynainst
$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:metadynamicmodel 方法: Fetch
DynaInst
"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
...
...
@@ -368,9 +368,9 @@ mock.onGet(new RegExp(/^\/metadynamicmodels\/fetchfindbak$/)).reply((config: any
return
[
status
,
mockDatas
?
mockDatas
:
[]];
});
// Fetch
Findbak
mock
.
onGet
(
new
RegExp
(
/^
\/
metadynamicmodels
\/
fetch
findbak
(\?[\w
-.
/
?%&=,
]
*
)
*$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:metadynamicmodel 方法: Fetch
Findbak
"
);
// Fetch
DynaInst
mock
.
onGet
(
new
RegExp
(
/^
\/
metadynamicmodels
\/
fetch
dynainst
(\?[\w
-.
/
?%&=,
]
*
)
*$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:metadynamicmodel 方法: Fetch
DynaInst
"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
if
(
config
.
url
.
includes
(
'page'
)){
let
url
=
config
.
url
.
split
(
'?'
)[
1
];
...
...
app_web/src/pages/lite/meta-dynamic-model-grid-view/meta-dynamic-model-grid-view-base.vue
浏览文件 @
04fbce83
...
...
@@ -140,7 +140,7 @@
loaddraftAction=
""
loadAction=
""
createAction=
""
fetchAction=
"FetchD
efaul
t"
fetchAction=
"FetchD
ynaIns
t"
:newdata=
"newdata"
:opendata=
"opendata"
name=
"grid"
...
...
app_web/src/service/meta-dynamic-model/meta-dynamic-model-service-base.ts
浏览文件 @
04fbce83
...
...
@@ -229,7 +229,7 @@ export default class MetaDynamicModelServiceBase extends EntityService {
}
/**
* Fetch
Findbak
接口方法
* Fetch
DynaInst
接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
...
...
@@ -237,14 +237,14 @@ export default class MetaDynamicModelServiceBase extends EntityService {
* @returns {Promise<any>}
* @memberof MetaDynamicModelServiceBase
*/
public
async
Fetch
Findbak
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
public
async
Fetch
DynaInst
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
let
res
:
any
=
Http
.
getInstance
().
get
(
`/metadynamicmodels/fetch
findbak
`
,
tempData
,
isloading
);
let
res
:
any
=
Http
.
getInstance
().
get
(
`/metadynamicmodels/fetch
dynainst
`
,
tempData
,
isloading
);
return
res
;
}
/**
* search
Findbak
接口方法
* search
DynaInst
接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
...
...
@@ -252,8 +252,8 @@ export default class MetaDynamicModelServiceBase extends EntityService {
* @returns {Promise<any>}
* @memberof MetaDynamicModelServiceBase
*/
public
async
search
Findbak
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
public
async
search
DynaInst
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
return
await
Http
.
getInstance
().
post
(
`/metadynamicmodels/search
findbak
`
,
tempData
,
isloading
);
return
await
Http
.
getInstance
().
post
(
`/metadynamicmodels/search
dynainst
`
,
tempData
,
isloading
);
}
}
\ No newline at end of file
ibzlite-core/src/main/java/cn/ibizlab/core/lite/mapper/MetaDynamicModelMapper.java
浏览文件 @
04fbce83
...
...
@@ -20,7 +20,7 @@ import com.alibaba.fastjson.JSONObject;
public
interface
MetaDynamicModelMapper
extends
BaseMapper
<
MetaDynamicModel
>
{
Page
<
MetaDynamicModel
>
searchDefault
(
IPage
page
,
@Param
(
"srf"
)
MetaDynamicModelSearchContext
context
,
@Param
(
"ew"
)
Wrapper
<
MetaDynamicModel
>
wrapper
);
Page
<
MetaDynamicModel
>
search
Findbak
(
IPage
page
,
@Param
(
"srf"
)
MetaDynamicModelSearchContext
context
,
@Param
(
"ew"
)
Wrapper
<
MetaDynamicModel
>
wrapper
);
Page
<
MetaDynamicModel
>
search
DynaInst
(
IPage
page
,
@Param
(
"srf"
)
MetaDynamicModelSearchContext
context
,
@Param
(
"ew"
)
Wrapper
<
MetaDynamicModel
>
wrapper
);
@Override
MetaDynamicModel
selectById
(
Serializable
id
);
@Override
...
...
ibzlite-core/src/main/java/cn/ibizlab/core/lite/service/IMetaDynamicModelService.java
浏览文件 @
04fbce83
...
...
@@ -39,7 +39,7 @@ public interface IMetaDynamicModelService extends IService<MetaDynamicModel> {
boolean
save
(
MetaDynamicModel
et
);
void
saveBatch
(
List
<
MetaDynamicModel
>
list
);
Page
<
MetaDynamicModel
>
searchDefault
(
MetaDynamicModelSearchContext
context
);
Page
<
MetaDynamicModel
>
search
Findbak
(
MetaDynamicModelSearchContext
context
);
Page
<
MetaDynamicModel
>
search
DynaInst
(
MetaDynamicModelSearchContext
context
);
List
<
MetaDynamicModel
>
selectBySystemId
(
String
pssystemid
);
void
removeBySystemId
(
String
pssystemid
);
List
<
MetaDynamicModel
>
selectByPdynainstid
(
String
configid
);
...
...
ibzlite-core/src/main/java/cn/ibizlab/core/lite/service/impl/MetaDynamicModelServiceImpl.java
浏览文件 @
04fbce83
...
...
@@ -229,11 +229,11 @@ public class MetaDynamicModelServiceImpl extends ServiceImpl<MetaDynamicModelMap
}
/**
* 查询集合
查询副本
* 查询集合
主实例数据查询
*/
@Override
public
Page
<
MetaDynamicModel
>
search
Findbak
(
MetaDynamicModelSearchContext
context
)
{
com
.
baomidou
.
mybatisplus
.
extension
.
plugins
.
pagination
.
Page
<
MetaDynamicModel
>
pages
=
baseMapper
.
search
Findbak
(
context
.
getPages
(),
context
,
context
.
getSelectCond
());
public
Page
<
MetaDynamicModel
>
search
DynaInst
(
MetaDynamicModelSearchContext
context
)
{
com
.
baomidou
.
mybatisplus
.
extension
.
plugins
.
pagination
.
Page
<
MetaDynamicModel
>
pages
=
baseMapper
.
search
DynaInst
(
context
.
getPages
(),
context
,
context
.
getSelectCond
());
return
new
PageImpl
<
MetaDynamicModel
>(
pages
.
getRecords
(),
context
.
getPageable
(),
pages
.
getTotal
());
}
...
...
ibzlite-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
04fbce83
...
...
@@ -4,7 +4,7 @@
<!--输出实体[BLADE_VISUAL]数据结构 -->
<changeSet
author=
"
root
"
id=
"tab-blade_visual-55-1"
>
<changeSet
author=
"
a_A_5d9d78509
"
id=
"tab-blade_visual-55-1"
>
<createTable
tableName=
"blade_visual"
>
<column
name=
"ID"
remarks=
""
type=
"BIGINT"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_BLADE_VISUAL_ID"
/>
...
...
@@ -36,7 +36,7 @@
<!--输出实体[BLADE_VISUAL_CATEGORY]数据结构 -->
<changeSet
author=
"
root
"
id=
"tab-blade_visual_category-23-2"
>
<changeSet
author=
"
a_A_5d9d78509
"
id=
"tab-blade_visual_category-23-2"
>
<createTable
tableName=
"blade_visual_category"
>
<column
name=
"ID"
remarks=
""
type=
"BIGINT"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_BLADE_VISUAL_CATEGORY_ID"
/>
...
...
@@ -52,7 +52,7 @@
<!--输出实体[BLADE_VISUAL_CONFIG]数据结构 -->
<changeSet
author=
"
root
"
id=
"tab-blade_visual_config-18-3"
>
<changeSet
author=
"
a_A_5d9d78509
"
id=
"tab-blade_visual_config-18-3"
>
<createTable
tableName=
"blade_visual_config"
>
<column
name=
"ID"
remarks=
""
type=
"BIGINT"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_BLADE_VISUAL_CONFIG_ID"
/>
...
...
@@ -68,7 +68,7 @@
<!--输出实体[BLADE_VISUAL_MAP]数据结构 -->
<changeSet
author=
"
root
"
id=
"tab-blade_visual_map-18-4"
>
<changeSet
author=
"
a_A_5d9d78509
"
id=
"tab-blade_visual_map-18-4"
>
<createTable
tableName=
"blade_visual_map"
>
<column
name=
"ID"
remarks=
""
type=
"BIGINT"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_BLADE_VISUAL_MAP_ID"
/>
...
...
@@ -86,7 +86,7 @@
<!--输出实体[DST_COMPONENT]数据结构 -->
<changeSet
author=
"
root
"
id=
"tab-dst_component-59-5"
>
<changeSet
author=
"
a_A_5d9d78509
"
id=
"tab-dst_component-59-5"
>
<createTable
tableName=
"IBZCOMPONENT"
>
<column
name=
"CID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_DST_COMPONENT_CID"
/>
...
...
@@ -112,7 +112,7 @@
<!--输出实体[DST_CONFIG]数据结构 -->
<changeSet
author=
"
root
"
id=
"tab-dst_config-32-6"
>
<changeSet
author=
"
a_A_5d9d78509
"
id=
"tab-dst_config-32-6"
>
<createTable
tableName=
"IBZCFG"
>
<column
name=
"CFGID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_DST_CONFIG_CFGID"
/>
...
...
@@ -134,7 +134,7 @@
<!--输出实体[DST_DATASOURCE]数据结构 -->
<changeSet
author=
"
root
"
id=
"tab-dst_datasource-75-7"
>
<changeSet
author=
"
a_A_5d9d78509
"
id=
"tab-dst_datasource-75-7"
>
<createTable
tableName=
"IBZDATASOURCE"
>
<column
name=
"DSID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_DST_DATASOURCE_DSID"
/>
...
...
@@ -152,7 +152,7 @@
<!--输出实体[DST_ROUTER]数据结构 -->
<changeSet
author=
"
root
"
id=
"tab-dst_router-37-8"
>
<changeSet
author=
"
a_A_5d9d78509
"
id=
"tab-dst_router-37-8"
>
<createTable
tableName=
"IBZROUTER"
>
<column
name=
"ROUTERID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_DST_ROUTER_ROUTERID"
/>
...
...
@@ -178,7 +178,7 @@
<!--输出实体[DST_SYSTEM]数据结构 -->
<changeSet
author=
"
root
"
id=
"tab-dst_system-45-9"
>
<changeSet
author=
"
a_A_5d9d78509
"
id=
"tab-dst_system-45-9"
>
<createTable
tableName=
"IBZPSSYSTEM"
>
<column
name=
"PSSYSTEMID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_DST_SYSTEM_PSSYSTEMID"
/>
...
...
@@ -198,7 +198,7 @@
<!--输出实体[DST_VIEW]数据结构 -->
<changeSet
author=
"
root
"
id=
"tab-dst_view-46-10"
>
<changeSet
author=
"
a_A_5d9d78509
"
id=
"tab-dst_view-46-10"
>
<createTable
tableName=
"IBZVIEW"
>
<column
name=
"VIEWID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_DST_VIEW_VIEWID"
/>
...
...
@@ -222,7 +222,7 @@
<!--输出实体[META_DATASET]数据结构 -->
<changeSet
author=
"
root
"
id=
"tab-meta_dataset-33-11"
>
<changeSet
author=
"
a_A_5d9d78509
"
id=
"tab-meta_dataset-33-11"
>
<createTable
tableName=
"IBZDATASET"
>
<column
name=
"DATASETID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_META_DATASET_DATASETID"
/>
...
...
@@ -244,7 +244,7 @@
<!--输出实体[META_DYNAMICMODEL]数据结构 -->
<changeSet
author=
"
root
"
id=
"tab-meta_dynamicmodel-82-12"
>
<changeSet
author=
"
a_A_5d9d78509
"
id=
"tab-meta_dynamicmodel-82-12"
>
<createTable
tableName=
"IBZDYNAMICMODEL"
>
<column
name=
"DYNAINSTID"
remarks=
""
type=
"VARCHAR(100)"
>
</column>
...
...
@@ -266,7 +266,7 @@
<!--输出实体[META_ENTITY]数据结构 -->
<changeSet
author=
"
root
"
id=
"tab-meta_entity-105-13"
>
<changeSet
author=
"
a_A_5d9d78509
"
id=
"tab-meta_entity-105-13"
>
<createTable
tableName=
"IBZENTITY"
>
<column
name=
"ENTITYID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_META_ENTITY_ENTITYID"
/>
...
...
@@ -298,7 +298,7 @@
<!--输出实体[META_FIELD]数据结构 -->
<changeSet
author=
"
root
"
id=
"tab-meta_field-153-14"
>
<changeSet
author=
"
a_A_5d9d78509
"
id=
"tab-meta_field-153-14"
>
<createTable
tableName=
"IBZFIELD"
>
<column
name=
"FIELDID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_META_FIELD_FIELDID"
/>
...
...
@@ -362,7 +362,7 @@
<!--输出实体[META_MODEL]数据结构 -->
<changeSet
author=
"
root
"
id=
"tab-meta_model-44-15"
>
<changeSet
author=
"
a_A_5d9d78509
"
id=
"tab-meta_model-44-15"
>
<createTable
tableName=
"IBZMODEL"
>
<column
name=
"MODELID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_META_MODEL_MODELID"
/>
...
...
@@ -388,7 +388,7 @@
<!--输出实体[META_MODULE]数据结构 -->
<changeSet
author=
"
root
"
id=
"tab-meta_module-34-16"
>
<changeSet
author=
"
a_A_5d9d78509
"
id=
"tab-meta_module-34-16"
>
<createTable
tableName=
"IBZMODULE"
>
<column
name=
"MODULEID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_META_MODULE_MODULEID"
/>
...
...
@@ -406,7 +406,7 @@
<!--输出实体[META_RELATION]数据结构 -->
<changeSet
author=
"
root
"
id=
"tab-meta_relation-106-17"
>
<changeSet
author=
"
a_A_5d9d78509
"
id=
"tab-meta_relation-106-17"
>
<createTable
tableName=
"IBZRELATION"
>
<column
name=
"RELATIONID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_META_RELATION_RELATIONID"
/>
...
...
@@ -448,10 +448,10 @@
<!--输出实体[DST_VIEW]外键关系 -->
<!--输出实体[META_DATASET]外键关系 -->
<!--输出实体[META_DYNAMICMODEL]外键关系 -->
<changeSet
author=
"
root
"
id=
"fk-meta_dynamicmodel-82-18"
>
<changeSet
author=
"
a_A_5d9d78509
"
id=
"fk-meta_dynamicmodel-82-18"
>
<addForeignKeyConstraint
baseColumnNames=
"SYSTEMID"
baseTableName=
"IBZDYNAMICMODEL"
constraintName=
"DER1N_META_DYNAMICMODEL_DST_SY"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"PSSYSTEMID"
referencedTableName=
"IBZPSSYSTEM"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"
root
"
id=
"fk-meta_dynamicmodel-82-19"
>
<changeSet
author=
"
a_A_5d9d78509
"
id=
"fk-meta_dynamicmodel-82-19"
>
<addForeignKeyConstraint
baseColumnNames=
"PDYNAINSTID"
baseTableName=
"IBZDYNAMICMODEL"
constraintName=
"DER1N_META_DYNAMICMODEL_META_D"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"CONFIGID"
referencedTableName=
"IBZDYNAMICMODEL"
validate=
"true"
/>
</changeSet>
<!--输出实体[META_ENTITY]外键关系 -->
...
...
ibzlite-core/src/main/resources/mapper/lite/metadynamicmodel/MetaDynamicModelMapper.xml
浏览文件 @
04fbce83
...
...
@@ -48,10 +48,10 @@
<if
test=
"ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere"
>
${ew.sqlSegment}
</if>
</select>
<!--数据集合[
Findbak
]-->
<select
id=
"search
Findbak
"
parameterType=
"cn.ibizlab.core.lite.filter.MetaDynamicModelSearchContext"
resultMap=
"MetaDynamicModelResultMap"
>
<!--数据集合[
DynaInst
]-->
<select
id=
"search
DynaInst
"
parameterType=
"cn.ibizlab.core.lite.filter.MetaDynamicModelSearchContext"
resultMap=
"MetaDynamicModelResultMap"
>
select t1.* from (
<include
refid=
"
FINDDYNAMICS
"
/>
<include
refid=
"
DynaInst
"
/>
)t1
<where><if
test=
"ew!=null and ew.sqlSegment!=null and !ew.emptyOfWhere"
>
${ew.sqlSegment}
</if></where>
<if
test=
"ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere"
>
${ew.sqlSegment}
</if>
...
...
@@ -67,19 +67,10 @@
<![CDATA[ SELECT t1.CONFIGID, t1.CONFIGNAME, t1.DYNAINSTID, t1.MODELFILE, t1.PDYNAINSTID, t1.STATUS, t1.SYSTEMID FROM IBZDYNAMICMODEL t1
]]>
</sql>
<!--数据查询[
FINDDYNAMICS
]-->
<sql
id=
"
FINDDYNAMICS
"
databaseId=
"mysql"
>
<!--数据查询[
DynaInst
]-->
<sql
id=
"
DynaInst
"
databaseId=
"mysql"
>
<![CDATA[ SELECT t1.`CONFIGID`, t1.`CONFIGNAME`, t1.`DYNAINSTID`, t1.`MODELFILE`, t1.`PDYNAINSTID`, t1.`STATUS`, t1.`SYSTEMID` FROM `IBZDYNAMICMODEL` t1
]]>
</sql>
<!--数据查询[FINDDYNAMICS]-->
<sql
id=
"FINDDYNAMICS"
databaseId=
"oracle"
>
<![CDATA[ SELECT t1.CONFIGID, t1.CONFIGNAME, t1.DYNAINSTID, t1.MODELFILE, t1.PDYNAINSTID, t1.STATUS, t1.SYSTEMID FROM IBZDYNAMICMODEL t1
]]>
</sql>
<!--数据查询[FINDDYNAMICS]-->
<sql
id=
"FINDDYNAMICS"
databaseId=
"postgresql"
>
<![CDATA[ SELECT t1.CONFIGID, t1.CONFIGNAME, t1.DYNAINSTID, t1.MODELFILE, t1.PDYNAINSTID, t1.STATUS, t1.SYSTEMID FROM IBZDYNAMICMODEL t1
WHERE ( t1.`PDYNAINSTID` IS NULL )
]]>
</sql>
<!--数据查询[View]-->
...
...
ibzlite-core/src/main/resources/permission/systemResource.json
浏览文件 @
04fbce83
...
...
@@ -119,7 +119,7 @@
"dename"
:
"MetaDynamicModel"
,
"delogicname"
:
"动态模型"
,
"sysmoudle"
:{
"id"
:
"LITE"
,
"name"
:
"lite"
},
"dedataset"
:[{
"id"
:
"Default"
,
"name"
:
"数据集"
},{
"id"
:
"
Findbak"
,
"name"
:
"查询副本
"
}],
"dedataset"
:[{
"id"
:
"Default"
,
"name"
:
"数据集"
},{
"id"
:
"
DynaInst"
,
"name"
:
"主实例数据查询
"
}],
"deaction"
:[{
"id"
:
"Create"
,
"name"
:
"Create"
,
"type"
:
"BUILTIN"
},{
"id"
:
"Update"
,
"name"
:
"Update"
,
"type"
:
"BUILTIN"
},{
"id"
:
"Remove"
,
"name"
:
"Remove"
,
"type"
:
"BUILTIN"
},{
"id"
:
"Get"
,
"name"
:
"Get"
,
"type"
:
"BUILTIN"
},{
"id"
:
"GetDraft"
,
"name"
:
"GetDraft"
,
"type"
:
"BUILTIN"
},{
"id"
:
"CheckKey"
,
"name"
:
"CheckKey"
,
"type"
:
"BUILTIN"
},{
"id"
:
"Publish"
,
"name"
:
"发布模型"
,
"type"
:
"USERCUSTOM"
},{
"id"
:
"Save"
,
"name"
:
"Save"
,
"type"
:
"BUILTIN"
}],
"datascope"
:[{
"id"
:
"all"
,
"name"
:
"全部数据"
}]
}
...
...
ibzlite-provider/ibzlite-provider-api/src/main/java/cn/ibizlab/api/rest/MetaDynamicModelResource.java
浏览文件 @
04fbce83
...
...
@@ -179,11 +179,11 @@ public class MetaDynamicModelResource {
.
body
(
new
PageImpl
(
metadynamicmodelMapping
.
toDto
(
domains
.
getContent
()),
context
.
getPageable
(),
domains
.
getTotalElements
()));
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzlite-MetaDynamicModel-search
Findbak
-all')"
)
@ApiOperation
(
value
=
"获取
查询副本"
,
tags
=
{
"动态模型"
}
,
notes
=
"获取查询副本
"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/metadynamicmodels/fetch
findbak
"
)
public
ResponseEntity
<
List
<
MetaDynamicModelDTO
>>
fetch
Findbak
(
MetaDynamicModelSearchContext
context
)
{
Page
<
MetaDynamicModel
>
domains
=
metadynamicmodelService
.
search
Findbak
(
context
)
;
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzlite-MetaDynamicModel-search
DynaInst
-all')"
)
@ApiOperation
(
value
=
"获取
主实例数据查询"
,
tags
=
{
"动态模型"
}
,
notes
=
"获取主实例数据查询
"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/metadynamicmodels/fetch
dynainst
"
)
public
ResponseEntity
<
List
<
MetaDynamicModelDTO
>>
fetch
DynaInst
(
MetaDynamicModelSearchContext
context
)
{
Page
<
MetaDynamicModel
>
domains
=
metadynamicmodelService
.
search
DynaInst
(
context
)
;
List
<
MetaDynamicModelDTO
>
list
=
metadynamicmodelMapping
.
toDto
(
domains
.
getContent
());
return
ResponseEntity
.
status
(
HttpStatus
.
OK
)
.
header
(
"x-page"
,
String
.
valueOf
(
context
.
getPageable
().
getPageNumber
()))
...
...
@@ -192,11 +192,11 @@ public class MetaDynamicModelResource {
.
body
(
list
);
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzlite-MetaDynamicModel-search
Findbak
-all')"
)
@ApiOperation
(
value
=
"查询
查询副本"
,
tags
=
{
"动态模型"
}
,
notes
=
"查询查询副本
"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/metadynamicmodels/search
findbak
"
)
public
ResponseEntity
<
Page
<
MetaDynamicModelDTO
>>
search
Findbak
(
@RequestBody
MetaDynamicModelSearchContext
context
)
{
Page
<
MetaDynamicModel
>
domains
=
metadynamicmodelService
.
search
Findbak
(
context
)
;
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzlite-MetaDynamicModel-search
DynaInst
-all')"
)
@ApiOperation
(
value
=
"查询
主实例数据查询"
,
tags
=
{
"动态模型"
}
,
notes
=
"查询主实例数据查询
"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/metadynamicmodels/search
dynainst
"
)
public
ResponseEntity
<
Page
<
MetaDynamicModelDTO
>>
search
DynaInst
(
@RequestBody
MetaDynamicModelSearchContext
context
)
{
Page
<
MetaDynamicModel
>
domains
=
metadynamicmodelService
.
search
DynaInst
(
context
)
;
return
ResponseEntity
.
status
(
HttpStatus
.
OK
)
.
body
(
new
PageImpl
(
metadynamicmodelMapping
.
toDto
(
domains
.
getContent
()),
context
.
getPageable
(),
domains
.
getTotalElements
()));
}
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录