Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzdst
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzdst
提交
4c37e1aa
提交
4c37e1aa
编写于
9月 14, 2021
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ibiz4j 发布系统代码 [ibz-dst,应用]
上级
f20fb4d1
变更
15
隐藏空白字符变更
内嵌
并排
正在显示
15 个修改的文件
包含
301 行增加
和
25 行删除
+301
-25
app-mpicker.vue
app_web/src/components/app-mpicker/app-mpicker.vue
+2
-2
dacharts.ts
app_web/src/mock/entity/dacharts/dacharts.ts
+38
-0
dareports.ts
app_web/src/mock/entity/dareports/dareports.ts
+38
-0
dachart-service-base.ts
app_web/src/service/dachart/dachart-service-base.ts
+28
-0
dareport-service-base.ts
app_web/src/service/dareport/dareport-service-base.ts
+28
-0
IDAChartService.java
...ava/cn/ibizlab/core/analysis/service/IDAChartService.java
+2
-0
IDAReportService.java
...va/cn/ibizlab/core/analysis/service/IDAReportService.java
+2
-0
DAChartServiceImpl.java
...bizlab/core/analysis/service/impl/DAChartServiceImpl.java
+16
-0
DAReportServiceImpl.java
...izlab/core/analysis/service/impl/DAReportServiceImpl.java
+16
-0
DAChartExService.java
.../cn/ibizlab/core/extensions/service/DAChartExService.java
+35
-0
DAReportExService.java
...cn/ibizlab/core/extensions/service/DAReportExService.java
+35
-0
h2_table.xml
ibzdst-core/src/main/resources/liquibase/h2_table.xml
+21
-21
systemResource.json
...st-core/src/main/resources/permission/systemResource.json
+2
-2
DAChartResource.java
...pi/src/main/java/cn/ibizlab/api/rest/DAChartResource.java
+19
-0
DAReportResource.java
...i/src/main/java/cn/ibizlab/api/rest/DAReportResource.java
+19
-0
未找到文件。
app_web/src/components/app-mpicker/app-mpicker.vue
浏览文件 @
4c37e1aa
...
...
@@ -158,8 +158,8 @@ export default class AppMpicker extends Vue {
this
.
items
.
push
({
[
this
.
deMajorField
]:
item
[
this
.
deMajorField
],
[
this
.
deKeyField
]:
item
[
this
.
deKeyField
]
});
}
});
}
catch
(
error
:
any
)
{
if
(
error
.
name
===
'SyntaxError'
){
}
catch
(
error
)
{
if
(
(
error
as
any
)
.
name
===
'SyntaxError'
){
let
srfkeys
:
any
=
newVal
.
split
(
','
);
let
srfmajortexts
:
any
=
null
;
if
(
this
.
valueitem
&&
this
.
activeData
[
this
.
valueitem
]){
...
...
app_web/src/mock/entity/dacharts/dacharts.ts
浏览文件 @
4c37e1aa
...
...
@@ -87,6 +87,44 @@ mock.onDelete(new RegExp(/^\/dacharts\/batch$/)).reply((config: any) => {
});
// Build
mock
.
onPost
(
new
RegExp
(
/^
\/
dacharts
\/?([
a-zA-Z0-9
\-\;]{0,35})\/
build$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:dachart 方法: Build"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
const
paramArray
:
Array
<
any
>
=
[
'chart_id'
];
const
matchArray
:
any
=
new
RegExp
(
/^
\/
dacharts
\/([
a-zA-Z0-9
\-\;]{1,35})\/
build$/
).
exec
(
config
.
url
);
let
tempValue
:
any
=
{};
if
(
matchArray
&&
matchArray
.
length
>
1
&&
paramArray
&&
paramArray
.
length
>
0
){
paramArray
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
Object
.
defineProperty
(
tempValue
,
item
,
{
enumerable
:
true
,
value
:
matchArray
[
index
+
1
]
});
});
}
//let items = mockDatas ? mockDatas : [];
//let _items = items.find((item: any) => Object.is(item.chart_id, tempValue.chart_id));
let
data
=
JSON
.
parse
(
config
.
data
);
mockDatas
.
forEach
((
item
)
=>
{
if
(
item
[
'chart_id'
]
==
tempValue
[
'chart_id'
]
){
for
(
let
value
in
data
){
if
(
item
.
hasOwnProperty
(
value
)){
item
[
value
]
=
data
[
value
];
}
}
}
})
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
(
data
);
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
data
];
});
// CheckKey
mock
.
onPost
(
new
RegExp
(
/^
\/
dacharts
\/?([
a-zA-Z0-9
\-\;]{0,35})\/
checkkey$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:dachart 方法: CheckKey"
);
...
...
app_web/src/mock/entity/dareports/dareports.ts
浏览文件 @
4c37e1aa
...
...
@@ -87,6 +87,44 @@ mock.onDelete(new RegExp(/^\/dareports\/batch$/)).reply((config: any) => {
});
// Build
mock
.
onPost
(
new
RegExp
(
/^
\/
dareports
\/?([
a-zA-Z0-9
\-\;]{0,35})\/
build$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:dareport 方法: Build"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
const
paramArray
:
Array
<
any
>
=
[
'report_id'
];
const
matchArray
:
any
=
new
RegExp
(
/^
\/
dareports
\/([
a-zA-Z0-9
\-\;]{1,35})\/
build$/
).
exec
(
config
.
url
);
let
tempValue
:
any
=
{};
if
(
matchArray
&&
matchArray
.
length
>
1
&&
paramArray
&&
paramArray
.
length
>
0
){
paramArray
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
Object
.
defineProperty
(
tempValue
,
item
,
{
enumerable
:
true
,
value
:
matchArray
[
index
+
1
]
});
});
}
//let items = mockDatas ? mockDatas : [];
//let _items = items.find((item: any) => Object.is(item.report_id, tempValue.report_id));
let
data
=
JSON
.
parse
(
config
.
data
);
mockDatas
.
forEach
((
item
)
=>
{
if
(
item
[
'report_id'
]
==
tempValue
[
'report_id'
]
){
for
(
let
value
in
data
){
if
(
item
.
hasOwnProperty
(
value
)){
item
[
value
]
=
data
[
value
];
}
}
}
})
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
(
data
);
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
data
];
});
// CheckKey
mock
.
onPost
(
new
RegExp
(
/^
\/
dareports
\/?([
a-zA-Z0-9
\-\;]{0,35})\/
checkkey$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:dareport 方法: CheckKey"
);
...
...
app_web/src/service/dachart/dachart-service-base.ts
浏览文件 @
4c37e1aa
...
...
@@ -38,6 +38,34 @@ export default class DAChartServiceBase extends EntityService {
// 实体接口
/**
* Build接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof DAChartServiceBase
*/
public
async
Build
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
Http
.
getInstance
().
post
(
`/dacharts/
${
context
.
dachart
}
/build`
,
data
,
isloading
);
return
res
;
}
/**
* BuildBatch接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof DAChartServiceBase
*/
public
async
BuildBatch
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
return
await
Http
.
getInstance
().
post
(
`/dacharts/buildbatch`
,
tempData
,
isloading
);
}
/**
* CheckKey接口方法
*
...
...
app_web/src/service/dareport/dareport-service-base.ts
浏览文件 @
4c37e1aa
...
...
@@ -38,6 +38,34 @@ export default class DAReportServiceBase extends EntityService {
// 实体接口
/**
* Build接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof DAReportServiceBase
*/
public
async
Build
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
Http
.
getInstance
().
post
(
`/dareports/
${
context
.
dareport
}
/build`
,
data
,
isloading
);
return
res
;
}
/**
* BuildBatch接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof DAReportServiceBase
*/
public
async
BuildBatch
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
return
await
Http
.
getInstance
().
post
(
`/dareports/buildbatch`
,
tempData
,
isloading
);
}
/**
* CheckKey接口方法
*
...
...
ibzdst-core/src/main/java/cn/ibizlab/core/analysis/service/IDAChartService.java
浏览文件 @
4c37e1aa
...
...
@@ -33,6 +33,8 @@ public interface IDAChartService extends IService<DAChart> {
void
removeBatch
(
Collection
<
String
>
idList
);
DAChart
get
(
String
key
);
DAChart
getDraft
(
DAChart
et
);
DAChart
build
(
DAChart
et
);
boolean
buildBatch
(
List
<
DAChart
>
etList
);
boolean
checkKey
(
DAChart
et
);
boolean
save
(
DAChart
et
);
void
saveBatch
(
List
<
DAChart
>
list
);
...
...
ibzdst-core/src/main/java/cn/ibizlab/core/analysis/service/IDAReportService.java
浏览文件 @
4c37e1aa
...
...
@@ -33,6 +33,8 @@ public interface IDAReportService extends IService<DAReport> {
void
removeBatch
(
Collection
<
String
>
idList
);
DAReport
get
(
String
key
);
DAReport
getDraft
(
DAReport
et
);
DAReport
build
(
DAReport
et
);
boolean
buildBatch
(
List
<
DAReport
>
etList
);
boolean
checkKey
(
DAReport
et
);
boolean
save
(
DAReport
et
);
void
saveBatch
(
List
<
DAReport
>
list
);
...
...
ibzdst-core/src/main/java/cn/ibizlab/core/analysis/service/impl/DAChartServiceImpl.java
浏览文件 @
4c37e1aa
...
...
@@ -113,6 +113,22 @@ public class DAChartServiceImpl extends ServiceImpl<DAChartMapper, DAChart> impl
return
et
;
}
@Override
@Transactional
public
DAChart
build
(
DAChart
et
)
{
//自定义代码
return
et
;
}
@Override
@Transactional
public
boolean
buildBatch
(
List
<
DAChart
>
etList
)
{
for
(
DAChart
et
:
etList
)
{
build
(
et
);
}
return
true
;
}
@Override
public
boolean
checkKey
(
DAChart
et
)
{
return
(!
ObjectUtils
.
isEmpty
(
et
.
getChartId
()))
&&
(!
Objects
.
isNull
(
this
.
getById
(
et
.
getChartId
())));
...
...
ibzdst-core/src/main/java/cn/ibizlab/core/analysis/service/impl/DAReportServiceImpl.java
浏览文件 @
4c37e1aa
...
...
@@ -113,6 +113,22 @@ public class DAReportServiceImpl extends ServiceImpl<DAReportMapper, DAReport> i
return
et
;
}
@Override
@Transactional
public
DAReport
build
(
DAReport
et
)
{
//自定义代码
return
et
;
}
@Override
@Transactional
public
boolean
buildBatch
(
List
<
DAReport
>
etList
)
{
for
(
DAReport
et
:
etList
)
{
build
(
et
);
}
return
true
;
}
@Override
public
boolean
checkKey
(
DAReport
et
)
{
return
(!
ObjectUtils
.
isEmpty
(
et
.
getReportId
()))
&&
(!
Objects
.
isNull
(
this
.
getById
(
et
.
getReportId
())));
...
...
ibzdst-core/src/main/java/cn/ibizlab/core/extensions/service/DAChartExService.java
0 → 100644
浏览文件 @
4c37e1aa
package
cn
.
ibizlab
.
core
.
extensions
.
service
;
import
cn.ibizlab.core.analysis.service.impl.DAChartServiceImpl
;
import
lombok.extern.slf4j.Slf4j
;
import
cn.ibizlab.core.analysis.domain.DAChart
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.context.annotation.Primary
;
import
java.util.*
;
/**
* 实体[图表] 自定义服务对象
*/
@Slf4j
@Primary
@Service
(
"DAChartExService"
)
public
class
DAChartExService
extends
DAChartServiceImpl
{
@Override
protected
Class
currentModelClass
()
{
return
com
.
baomidou
.
mybatisplus
.
core
.
toolkit
.
ReflectionKit
.
getSuperClassGenericType
(
this
.
getClass
().
getSuperclass
(),
1
);
}
/**
* [Build:build] 行为扩展
* @param et
* @return
*/
@Override
@Transactional
public
DAChart
build
(
DAChart
et
)
{
return
super
.
build
(
et
);
}
}
ibzdst-core/src/main/java/cn/ibizlab/core/extensions/service/DAReportExService.java
0 → 100644
浏览文件 @
4c37e1aa
package
cn
.
ibizlab
.
core
.
extensions
.
service
;
import
cn.ibizlab.core.analysis.service.impl.DAReportServiceImpl
;
import
lombok.extern.slf4j.Slf4j
;
import
cn.ibizlab.core.analysis.domain.DAReport
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.context.annotation.Primary
;
import
java.util.*
;
/**
* 实体[报表] 自定义服务对象
*/
@Slf4j
@Primary
@Service
(
"DAReportExService"
)
public
class
DAReportExService
extends
DAReportServiceImpl
{
@Override
protected
Class
currentModelClass
()
{
return
com
.
baomidou
.
mybatisplus
.
core
.
toolkit
.
ReflectionKit
.
getSuperClassGenericType
(
this
.
getClass
().
getSuperclass
(),
1
);
}
/**
* [Build:build] 行为扩展
* @param et
* @return
*/
@Override
@Transactional
public
DAReport
build
(
DAReport
et
)
{
return
super
.
build
(
et
);
}
}
ibzdst-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
4c37e1aa
...
...
@@ -4,7 +4,7 @@
<!--输出实体[DA_BUILD]数据结构 -->
<changeSet
author=
"
root
"
id=
"tab-da_build-2-1"
>
<changeSet
author=
"
a_A_5d9d78509
"
id=
"tab-da_build-2-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=
"
root"
id=
"tab-da_chart-1
-2"
>
<changeSet
author=
"
a_A_5d9d78509"
id=
"tab-da_chart-2
-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=
"
root
"
id=
"tab-da_metric-1-3"
>
<changeSet
author=
"
a_A_5d9d78509
"
id=
"tab-da_metric-1-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=
"
root"
id=
"tab-da_report-15
-4"
>
<changeSet
author=
"
a_A_5d9d78509"
id=
"tab-da_report-16
-4"
>
<createTable
tableName=
"IBZDAREPORT"
>
<column
name=
"REPORTID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_DA_REPORT_REPORTID"
/>
...
...
@@ -102,7 +102,7 @@
<!--输出实体[DICT_CATALOG]数据结构 -->
<changeSet
author=
"
root
"
id=
"tab-dict_catalog-7-5"
>
<changeSet
author=
"
a_A_5d9d78509
"
id=
"tab-dict_catalog-7-5"
>
<createTable
tableName=
"IBZDICTCATALOG"
>
<column
name=
"CID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_DICT_CATALOG_CID"
/>
...
...
@@ -128,7 +128,7 @@
<!--输出实体[DICT_OPTION]数据结构 -->
<changeSet
author=
"
root
"
id=
"tab-dict_option-8-6"
>
<changeSet
author=
"
a_A_5d9d78509
"
id=
"tab-dict_option-8-6"
>
<createTable
tableName=
"IBZDICTOPTION"
>
<column
name=
"VKEY"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_DICT_OPTION_VKEY"
/>
...
...
@@ -168,7 +168,7 @@
<!--输出实体[DST_DATASOURCE]数据结构 -->
<changeSet
author=
"
root
"
id=
"tab-dst_datasource-7-7"
>
<changeSet
author=
"
a_A_5d9d78509
"
id=
"tab-dst_datasource-7-7"
>
<createTable
tableName=
"IBZDATASOURCE"
>
<column
name=
"DSID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_DST_DATASOURCE_DSID"
/>
...
...
@@ -184,7 +184,7 @@
<!--输出实体[DST_SYSTEM]数据结构 -->
<changeSet
author=
"
root
"
id=
"tab-dst_system-1-8"
>
<changeSet
author=
"
a_A_5d9d78509
"
id=
"tab-dst_system-1-8"
>
<createTable
tableName=
"IBZPSSYSTEM"
>
<column
name=
"PSSYSTEMID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_DST_SYSTEM_PSSYSTEMID"
/>
...
...
@@ -204,7 +204,7 @@
<!--输出实体[RU_EXECLOG]数据结构 -->
<changeSet
author=
"
root
"
id=
"tab-ru_execlog-1-9"
>
<changeSet
author=
"
a_A_5d9d78509
"
id=
"tab-ru_execlog-1-9"
>
<createTable
tableName=
"IBZRULELOG"
>
<column
name=
"RU_EXECLOGID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_RU_EXECLOG_RU_EXECLOGID"
/>
...
...
@@ -234,7 +234,7 @@
<!--输出实体[RU_EXECRESULT]数据结构 -->
<changeSet
author=
"
root
"
id=
"tab-ru_execresult-1-10"
>
<changeSet
author=
"
a_A_5d9d78509
"
id=
"tab-ru_execresult-1-10"
>
<createTable
tableName=
"IBZRULERESULT"
>
<column
name=
"RU_EXECRESULTID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_RU_EXECRESULT_RU_EXECRESULT"
/>
...
...
@@ -274,7 +274,7 @@
<!--输出实体[META_DATASET]数据结构 -->
<changeSet
author=
"
root
"
id=
"tab-meta_dataset-1-11"
>
<changeSet
author=
"
a_A_5d9d78509
"
id=
"tab-meta_dataset-1-11"
>
<createTable
tableName=
"IBZDATASET"
>
<column
name=
"DATASETID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_META_DATASET_DATASETID"
/>
...
...
@@ -296,7 +296,7 @@
<!--输出实体[META_ENTITY]数据结构 -->
<changeSet
author=
"
root
"
id=
"tab-meta_entity-5-12"
>
<changeSet
author=
"
a_A_5d9d78509
"
id=
"tab-meta_entity-5-12"
>
<createTable
tableName=
"IBZENTITY"
>
<column
name=
"ENTITYID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_META_ENTITY_ENTITYID"
/>
...
...
@@ -328,7 +328,7 @@
<!--输出实体[META_FIELD]数据结构 -->
<changeSet
author=
"
root
"
id=
"tab-meta_field-11-13"
>
<changeSet
author=
"
a_A_5d9d78509
"
id=
"tab-meta_field-11-13"
>
<createTable
tableName=
"IBZFIELD"
>
<column
name=
"FIELDID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_META_FIELD_FIELDID"
/>
...
...
@@ -392,7 +392,7 @@
<!--输出实体[META_MODEL]数据结构 -->
<changeSet
author=
"
root
"
id=
"tab-meta_model-1-14"
>
<changeSet
author=
"
a_A_5d9d78509
"
id=
"tab-meta_model-1-14"
>
<createTable
tableName=
"IBZMODEL"
>
<column
name=
"MODELID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_META_MODEL_MODELID"
/>
...
...
@@ -418,7 +418,7 @@
<!--输出实体[META_MODULE]数据结构 -->
<changeSet
author=
"
root
"
id=
"tab-meta_module-1-15"
>
<changeSet
author=
"
a_A_5d9d78509
"
id=
"tab-meta_module-1-15"
>
<createTable
tableName=
"IBZMODULE"
>
<column
name=
"MODULEID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_META_MODULE_MODULEID"
/>
...
...
@@ -436,7 +436,7 @@
<!--输出实体[META_RELATION]数据结构 -->
<changeSet
author=
"
root
"
id=
"tab-meta_relation-10-16"
>
<changeSet
author=
"
a_A_5d9d78509
"
id=
"tab-meta_relation-10-16"
>
<createTable
tableName=
"IBZRELATION"
>
<column
name=
"RELATIONID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_META_RELATION_RELATIONID"
/>
...
...
@@ -468,7 +468,7 @@
<!--输出实体[RU_ENGINE]数据结构 -->
<changeSet
author=
"
root
"
id=
"tab-ru_engine-1-17"
>
<changeSet
author=
"
a_A_5d9d78509
"
id=
"tab-ru_engine-1-17"
>
<createTable
tableName=
"IBZRULEENGINE"
>
<column
name=
"ENGINEID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_RU_ENGINE_ENGINEID"
/>
...
...
@@ -496,7 +496,7 @@
<!--输出实体[RU_ITEM]数据结构 -->
<changeSet
author=
"
root
"
id=
"tab-ru_item-1-18"
>
<changeSet
author=
"
a_A_5d9d78509
"
id=
"tab-ru_item-1-18"
>
<createTable
tableName=
"IBZRULE"
>
<column
name=
"RULEID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_RU_ITEM_RULEID"
/>
...
...
@@ -532,7 +532,7 @@
<!--输出实体[ETL_TABLE_SYNC]数据结构 -->
<changeSet
author=
"
root
"
id=
"tab-etl_table_sync-81-19"
>
<changeSet
author=
"
a_A_5d9d78509
"
id=
"tab-etl_table_sync-81-19"
>
<createTable
tableName=
"IBZTABLESYNC"
>
<column
name=
"SYNCID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_ETL_TABLE_SYNC_SYNCID"
/>
...
...
@@ -587,13 +587,13 @@
<!--输出实体[DA_BUILD]外键关系 -->
<!--输出实体[DA_CHART]外键关系 -->
<!--输出实体[DA_METRIC]外键关系 -->
<changeSet
author=
"
root
"
id=
"fk-da_metric-1-20"
>
<changeSet
author=
"
a_A_5d9d78509
"
id=
"fk-da_metric-1-20"
>
<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]外键关系 -->
<!--输出实体[DICT_CATALOG]外键关系 -->
<!--输出实体[DICT_OPTION]外键关系 -->
<changeSet
author=
"
root
"
id=
"fk-dict_option-8-21"
>
<changeSet
author=
"
a_A_5d9d78509
"
id=
"fk-dict_option-8-21"
>
<addForeignKeyConstraint
baseColumnNames=
"CID"
baseTableName=
"IBZDICTOPTION"
constraintName=
"DER1N_DICT_OPTION_DICT_CATALOG"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"CID"
referencedTableName=
"IBZDICTCATALOG"
validate=
"true"
/>
</changeSet>
<!--输出实体[DST_DATASOURCE]外键关系 -->
...
...
ibzdst-core/src/main/resources/permission/systemResource.json
浏览文件 @
4c37e1aa
...
...
@@ -16,7 +16,7 @@
"delogicname"
:
"图表"
,
"sysmoudle"
:{
"id"
:
"ANALYSIS"
,
"name"
:
"analysis"
},
"dedataset"
:[{
"id"
:
"Default"
,
"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"
:
"Save"
,
"name"
:
"Save"
,
"type"
:
"BUILTIN"
}],
"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"
:
"
Build"
,
"name"
:
"build"
,
"type"
:
"USERCUSTOM"
},{
"id"
:
"
CheckKey"
,
"name"
:
"CheckKey"
,
"type"
:
"BUILTIN"
},{
"id"
:
"Save"
,
"name"
:
"Save"
,
"type"
:
"BUILTIN"
}],
"datascope"
:[{
"id"
:
"all"
,
"name"
:
"全部数据"
}]
}
,
{
...
...
@@ -40,7 +40,7 @@
"delogicname"
:
"报表"
,
"sysmoudle"
:{
"id"
:
"ANALYSIS"
,
"name"
:
"analysis"
},
"dedataset"
:[{
"id"
:
"Default"
,
"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"
:
"Save"
,
"name"
:
"Save"
,
"type"
:
"BUILTIN"
}],
"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"
:
"
Build"
,
"name"
:
"build"
,
"type"
:
"USERCUSTOM"
},{
"id"
:
"
CheckKey"
,
"name"
:
"CheckKey"
,
"type"
:
"BUILTIN"
},{
"id"
:
"Save"
,
"name"
:
"Save"
,
"type"
:
"BUILTIN"
}],
"datascope"
:[{
"id"
:
"all"
,
"name"
:
"全部数据"
}]
}
,
{
...
...
ibzdst-provider/ibzdst-provider-api/src/main/java/cn/ibizlab/api/rest/DAChartResource.java
浏览文件 @
4c37e1aa
...
...
@@ -108,6 +108,25 @@ public class DAChartResource {
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
true
);
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzdst-DAChart-Build-all')"
)
@ApiOperation
(
value
=
"build"
,
tags
=
{
"图表"
},
notes
=
"build"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/dacharts/{dachart_id}/build"
)
public
ResponseEntity
<
DAChartDTO
>
build
(
@PathVariable
(
"dachart_id"
)
String
dachart_id
,
@RequestBody
DAChartDTO
dachartdto
)
{
DAChart
domain
=
dachartMapping
.
toDomain
(
dachartdto
);
domain
.
setChartId
(
dachart_id
);
domain
=
dachartService
.
build
(
domain
);
dachartdto
=
dachartMapping
.
toDto
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dachartdto
);
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzdst-DAChart-Build-all')"
)
@ApiOperation
(
value
=
"批量处理[build]"
,
tags
=
{
"图表"
},
notes
=
"批量处理[build]"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/dacharts/buildbatch"
)
public
ResponseEntity
<
Boolean
>
buildBatch
(
@RequestBody
List
<
DAChartDTO
>
dachartdtos
)
{
List
<
DAChart
>
domains
=
dachartMapping
.
toDomain
(
dachartdtos
);
boolean
result
=
dachartService
.
buildBatch
(
domains
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
result
);
}
@ApiOperation
(
value
=
"检查图表"
,
tags
=
{
"图表"
},
notes
=
"检查图表"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/dacharts/checkkey"
)
public
ResponseEntity
<
Boolean
>
checkKey
(
@RequestBody
DAChartDTO
dachartdto
)
{
...
...
ibzdst-provider/ibzdst-provider-api/src/main/java/cn/ibizlab/api/rest/DAReportResource.java
浏览文件 @
4c37e1aa
...
...
@@ -108,6 +108,25 @@ public class DAReportResource {
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
true
);
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzdst-DAReport-Build-all')"
)
@ApiOperation
(
value
=
"build"
,
tags
=
{
"报表"
},
notes
=
"build"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/dareports/{dareport_id}/build"
)
public
ResponseEntity
<
DAReportDTO
>
build
(
@PathVariable
(
"dareport_id"
)
String
dareport_id
,
@RequestBody
DAReportDTO
dareportdto
)
{
DAReport
domain
=
dareportMapping
.
toDomain
(
dareportdto
);
domain
.
setReportId
(
dareport_id
);
domain
=
dareportService
.
build
(
domain
);
dareportdto
=
dareportMapping
.
toDto
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dareportdto
);
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzdst-DAReport-Build-all')"
)
@ApiOperation
(
value
=
"批量处理[build]"
,
tags
=
{
"报表"
},
notes
=
"批量处理[build]"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/dareports/buildbatch"
)
public
ResponseEntity
<
Boolean
>
buildBatch
(
@RequestBody
List
<
DAReportDTO
>
dareportdtos
)
{
List
<
DAReport
>
domains
=
dareportMapping
.
toDomain
(
dareportdtos
);
boolean
result
=
dareportService
.
buildBatch
(
domains
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
result
);
}
@ApiOperation
(
value
=
"检查报表"
,
tags
=
{
"报表"
},
notes
=
"检查报表"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/dareports/checkkey"
)
public
ResponseEntity
<
Boolean
>
checkKey
(
@RequestBody
DAReportDTO
dareportdto
)
{
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录