Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-data-cloud
Overview
Overview
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
base_platform_enterprise
gic-data-cloud
Commits
1dbbf374
Commit
1dbbf374
authored
Jul 16, 2020
by
zhiwj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加分组
parent
4a80c859
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
13 deletions
+47
-13
IndexDTO.java
...a-cloud-api/src/main/java/com/gic/cloud/dto/IndexDTO.java
+10
-0
TabIndex.java
...-service/src/main/java/com/gic/cloud/entity/TabIndex.java
+14
-1
TabIndexMapper.xml
...loud-service/src/main/resources/mapper/TabIndexMapper.xml
+23
-12
No files found.
gic-data-cloud-api/src/main/java/com/gic/cloud/dto/IndexDTO.java
View file @
1dbbf374
...
...
@@ -140,6 +140,8 @@ public class IndexDTO implements Serializable {
*/
private
String
optUserName
;
private
Integer
indexGroupId
;
public
Integer
getIndexId
()
{
return
indexId
;
}
...
...
@@ -355,4 +357,12 @@ public class IndexDTO implements Serializable {
public
void
setShowStatus
(
Integer
showStatus
)
{
this
.
showStatus
=
showStatus
;
}
public
Integer
getIndexGroupId
()
{
return
indexGroupId
;
}
public
void
setIndexGroupId
(
Integer
indexGroupId
)
{
this
.
indexGroupId
=
indexGroupId
;
}
}
gic-data-cloud-service/src/main/java/com/gic/cloud/entity/TabIndex.java
View file @
1dbbf374
...
...
@@ -12,7 +12,7 @@ public class TabIndex {
private
Integer
indexId
;
/**
* 分类类型
* 分类类型
1指标 2维度 3说明
*/
private
Integer
classifyType
;
...
...
@@ -72,6 +72,11 @@ public class TabIndex {
private
Integer
decimalSize
;
/**
*
*/
private
Integer
indexGroupId
;
/**
* 数据类型 1流量 2存量
*/
private
Integer
dataType
;
...
...
@@ -235,6 +240,14 @@ public class TabIndex {
this
.
decimalSize
=
decimalSize
;
}
public
Integer
getIndexGroupId
()
{
return
indexGroupId
;
}
public
void
setIndexGroupId
(
Integer
indexGroupId
)
{
this
.
indexGroupId
=
indexGroupId
;
}
public
Integer
getDataType
()
{
return
dataType
;
}
...
...
gic-data-cloud-service/src/main/resources/mapper/TabIndexMapper.xml
View file @
1dbbf374
...
...
@@ -15,6 +15,7 @@
<result
column=
"unit_code"
jdbcType=
"INTEGER"
property=
"unitCode"
/>
<result
column=
"unit_name"
jdbcType=
"VARCHAR"
property=
"unitName"
/>
<result
column=
"decimal_size"
jdbcType=
"INTEGER"
property=
"decimalSize"
/>
<result
column=
"index_group_id"
jdbcType=
"INTEGER"
property=
"indexGroupId"
/>
<result
column=
"data_type"
jdbcType=
"INTEGER"
property=
"dataType"
/>
<result
column=
"index_type"
jdbcType=
"INTEGER"
property=
"indexType"
/>
<result
column=
"base_organized"
jdbcType=
"VARCHAR"
property=
"baseOrganized"
/>
...
...
@@ -31,8 +32,8 @@
<sql
id=
"Base_Column_List"
>
index_id, classify_type, classify_name, is_app_index, rel_app_index, code, name,
index_level, index_level_name, rel_top_level, unit_code, unit_name, decimal_size,
data_type, index_type, base_organized, base_time, update_rate, update_rate_remark,
index_remark,
`show_status`
, complement, create_time, update_time, status
index_group_id,
data_type, index_type, base_organized, base_time, update_rate, update_rate_remark,
index_remark,
show_status
, complement, create_time, update_time, status
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
select
...
...
@@ -49,20 +50,20 @@
is_app_index, rel_app_index, code,
name, index_level, index_level_name,
rel_top_level, unit_code, unit_name,
decimal_size,
data_type, index
_type,
base_organized, base_time, update_rat
e,
update_rate
_remark, index_remark, `show_status`,
complement, create_time, upd
ate_time,
status)
decimal_size,
index_group_id, data
_type,
index_type, base_organized, base_tim
e,
update_rate
, update_rate_remark, index_remark,
show_status, complement, cre
ate_time,
update_time,
status)
values (#{indexId,jdbcType=INTEGER}, #{classifyType,jdbcType=INTEGER}, #{classifyName,jdbcType=VARCHAR},
#{isAppIndex,jdbcType=INTEGER}, #{relAppIndex,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR},
#{name,jdbcType=VARCHAR}, #{indexLevel,jdbcType=INTEGER}, #{indexLevelName,jdbcType=VARCHAR},
#{relTopLevel,jdbcType=VARCHAR}, #{unitCode,jdbcType=INTEGER}, #{unitName,jdbcType=VARCHAR},
#{decimalSize,jdbcType=INTEGER}, #{
dataType,jdbcType=INTEGER}, #{index
Type,jdbcType=INTEGER},
#{
baseOrganized,jdbcType=VARCHAR}, #{baseTime,jdbcType=VARCHAR}, #{updateRat
e,jdbcType=VARCHAR},
#{updateRate
Remark,jdbcType=VARCHAR}, #{indexRemark,jdbcType=VARCHAR}, #{showStatus,jdbcType=INTEGER},
#{
complement,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{upd
ateTime,jdbcType=TIMESTAMP},
#{status,jdbcType=INTEGER})
#{decimalSize,jdbcType=INTEGER}, #{
indexGroupId,jdbcType=INTEGER}, #{data
Type,jdbcType=INTEGER},
#{
indexType,jdbcType=INTEGER}, #{baseOrganized,jdbcType=VARCHAR}, #{baseTim
e,jdbcType=VARCHAR},
#{updateRate
,jdbcType=VARCHAR}, #{updateRateRemark,jdbcType=VARCHAR}, #{indexRemark,jdbcType=VARCHAR},
#{
showStatus,jdbcType=INTEGER}, #{complement,jdbcType=VARCHAR}, #{cre
ateTime,jdbcType=TIMESTAMP},
#{
updateTime,jdbcType=TIMESTAMP}, #{
status,jdbcType=INTEGER})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.gic.cloud.entity.TabIndex"
>
<selectKey
keyProperty=
"indexId"
order=
"AFTER"
resultType=
"java.lang.Integer"
>
...
...
@@ -109,6 +110,9 @@
<if
test=
"decimalSize != null"
>
decimal_size,
</if>
<if
test=
"indexGroupId != null"
>
index_group_id,
</if>
<if
test=
"dataType != null"
>
data_type,
</if>
...
...
@@ -186,6 +190,9 @@
<if
test=
"decimalSize != null"
>
#{decimalSize,jdbcType=INTEGER},
</if>
<if
test=
"indexGroupId != null"
>
#{indexGroupId,jdbcType=INTEGER},
</if>
<if
test=
"dataType != null"
>
#{dataType,jdbcType=INTEGER},
</if>
...
...
@@ -263,6 +270,9 @@
<if
test=
"decimalSize != null"
>
decimal_size = #{decimalSize,jdbcType=INTEGER},
</if>
<if
test=
"indexGroupId != null"
>
index_group_id = #{indexGroupId,jdbcType=INTEGER},
</if>
<if
test=
"dataType != null"
>
data_type = #{dataType,jdbcType=INTEGER},
</if>
...
...
@@ -316,6 +326,7 @@
unit_code = #{unitCode,jdbcType=INTEGER},
unit_name = #{unitName,jdbcType=VARCHAR},
decimal_size = #{decimalSize,jdbcType=INTEGER},
index_group_id = #{indexGroupId,jdbcType=INTEGER},
data_type = #{dataType,jdbcType=INTEGER},
index_type = #{indexType,jdbcType=INTEGER},
base_organized = #{baseOrganized,jdbcType=VARCHAR},
...
...
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