Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
T
test
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
邬友楠
test
Commits
cc5ac70a
Commit
cc5ac70a
authored
Apr 25, 2021
by
雍欢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
合并指标模块
parent
10d36eb4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
108 additions
and
0 deletions
+108
-0
index.xml
huigou-index/src/main/resources/config/index/index.xml
+108
-0
No files found.
huigou-index/src/main/resources/config/index/index.xml
0 → 100644
View file @
cc5ac70a
<?xml version="1.0" encoding="UTF-8"?>
<query-mappings>
<query
name=
"indexClassificationDim"
label=
"指标分类维度"
table=
"NG_Index_Classification_Dim"
>
<sql-query>
select * from NG_Index_Classification_Dim t
</sql-query>
<sql
name=
"queryEnabledAll"
>
select id, name from NG_Index_Classification_Dim where status = 1
</sql>
<condition
column=
"CODE"
name=
"code"
type=
"java.lang.String"
symbol=
"like"
alias=
"t"
/>
<condition
column=
"NAME"
name=
"name"
type=
"java.lang.String"
symbol=
"like"
alias=
"t"
/>
</query>
<query
name=
"indexClassification"
label=
"指标分类"
table=
"NG_Index_Classification"
>
<sql-query>
select * from NG_Index_Classification t
</sql-query>
<sql
name=
"queryForTree"
>
select *
from (select id,
id dim_id,
code,
name,
'1' as parent_id,
status,
null full_id,
null full_name,
sequence,
version,
(select count(*)
from ng_index_classification i
where i.parent_id = t.id) as has_children
from ng_index_classification_dim t
where t.is_default >= :isDefault
union all
select id,
dim_id,
code,
name,
parent_id,
status,
full_id,
full_name,
sequence,
version,
(select count(*)
from ng_index_classification i
where i.parent_id = t.id) as has_children
from ng_index_classification t) t where 1 = 1
</sql>
<condition
column=
"PARENT_ID"
name=
"parentId"
type=
"java.lang.String"
symbol=
"="
alias=
"t"
/>
<condition
column=
"CODE"
name=
"code"
type=
"java.lang.String"
symbol=
"like"
alias=
"t"
/>
<condition
column=
"NAME"
name=
"name"
type=
"java.lang.String"
symbol=
"like"
alias=
"t"
/>
</query>
<query
name=
"index"
label=
"指标"
table=
"NG_INDEX"
>
<sql-query>
select i.*, c.full_id, c.full_name
from ng_index i, ng_index_classification c
where i.classification_id = c.id
</sql-query>
<condition
column=
"CODE"
name=
"code"
type=
"java.lang.String"
symbol=
"like"
alias=
"i"
/>
<condition
column=
"NAME"
name=
"name"
type=
"java.lang.String"
symbol=
"like"
alias=
"i"
/>
<condition
column=
"INDEX_PERIOD_KIND"
name=
"indexPeriodKind"
type=
"java.lang.String"
symbol=
"="
alias=
"i"
/>
<condition
column=
"FULL_ID"
name=
"fullId"
type=
"java.lang.String"
symbol=
"like"
alias=
"c"
/>
</query>
<query
name=
"indexEntry"
label=
"指标明细"
table=
"NG_INDEX_ENTRY"
>
<sql-query>
select id, index_id, time_dim, organ_dim, upper_limit, lower_limit, formula,
sequence, version, view_kind, url
from ng_index_entry t
</sql-query>
<condition
column=
"INDEX_ID"
name=
"indexId"
type=
"java.lang.String"
symbol=
"="
alias=
"t"
/>
</query>
<query
name=
"indexEntryUIParam"
label=
"指标展示界面参数"
table=
"NG_INDEX_ENTRY_UI_PARAM"
>
<sql-query>
select * from NG_INDEX_ENTRY_UI_PARAM t
</sql-query>
<condition
column=
"ENTRY_ID"
name=
"entryId"
type=
"java.lang.String"
symbol=
"="
alias=
"t"
/>
</query>
<query
name=
"indexEntryTab"
label=
"指标展示表格"
table=
"NG_INDEX_ENTRY_TAB"
>
<sql-query>
select id, entry_id, code, name, dataset_id, cascade, sort_json, dataset_name, province_enable, city_enable, county_enable, sequence, version
from ng_index_entry_tab t
</sql-query>
<condition
column=
"ENTRY_ID"
name=
"entryId"
type=
"java.lang.String"
symbol=
"="
alias=
"t"
/>
<sql
name=
"selectTableColumnsJson"
>
select table_columns_json from ng_index_entry_tab where id = ?
</sql>
</query>
<query
name=
"indexEntryFormulaParam"
label=
"公式参数"
table=
"NG_INDEX_ENTRY_PARAM"
>
<sql-query>
select * from NG_INDEX_ENTRY_PARAM t
</sql-query>
<condition
column=
"ENTRY_ID"
name=
"entryId"
type=
"java.lang.String"
symbol=
"="
alias=
"t"
/>
</query>
<query
name=
"indexEntryAlertLevel"
label=
"指标预警级别"
table=
"NG_INDEX_ENTRY_ALERT_LEVEL"
>
<sql-query>
select * from NG_INDEX_ENTRY_ALERT_LEVEL t
</sql-query>
<condition
column=
"ENTRY_ID"
name=
"entryId"
type=
"java.lang.String"
symbol=
"="
alias=
"t"
/>
</query>
</query-mappings>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment