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
7971e41d
Commit
7971e41d
authored
Jul 10, 2020
by
zhiwj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
发布小红点
parent
475b7c85
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
53 deletions
+28
-53
IndexDTO.java
...a-cloud-api/src/main/java/com/gic/cloud/dto/IndexDTO.java
+11
-1
IndexController.java
...m/gic/cloud/operation/web/controller/IndexController.java
+1
-1
TabIndex.java
...-service/src/main/java/com/gic/cloud/entity/TabIndex.java
+5
-5
TabIndexMapper.xml
...loud-service/src/main/resources/mapper/TabIndexMapper.xml
+11
-11
EnterpriseApiServiceImplTest.java
...nterprise/service/outer/EnterpriseApiServiceImplTest.java
+0
-35
No files found.
gic-data-cloud-api/src/main/java/com/gic/cloud/dto/IndexDTO.java
View file @
7971e41d
...
@@ -18,7 +18,7 @@ public class IndexDTO implements Serializable {
...
@@ -18,7 +18,7 @@ public class IndexDTO implements Serializable {
private
Integer
indexId
;
private
Integer
indexId
;
/**
/**
* 分类类型
* 分类类型
1指标 2维度 3说明
*/
*/
private
Integer
classifyType
;
private
Integer
classifyType
;
...
@@ -127,6 +127,8 @@ public class IndexDTO implements Serializable {
...
@@ -127,6 +127,8 @@ public class IndexDTO implements Serializable {
*/
*/
private
Date
updateTime
;
private
Date
updateTime
;
private
Integer
showStatus
;
private
List
<
Integer
>
relModuleIdList
;
private
List
<
Integer
>
relModuleIdList
;
/**
/**
...
@@ -345,4 +347,12 @@ public class IndexDTO implements Serializable {
...
@@ -345,4 +347,12 @@ public class IndexDTO implements Serializable {
public
void
setOptUserName
(
String
optUserName
)
{
public
void
setOptUserName
(
String
optUserName
)
{
this
.
optUserName
=
optUserName
;
this
.
optUserName
=
optUserName
;
}
}
public
Integer
getShowStatus
()
{
return
showStatus
;
}
public
void
setShowStatus
(
Integer
showStatus
)
{
this
.
showStatus
=
showStatus
;
}
}
}
gic-data-cloud-operation-web/src/main/java/com/gic/cloud/operation/web/controller/IndexController.java
View file @
7971e41d
...
@@ -35,7 +35,7 @@ public class IndexController {
...
@@ -35,7 +35,7 @@ public class IndexController {
@RequestMapping
(
"/saveIndex"
)
@RequestMapping
(
"/saveIndex"
)
public
RestResponse
saveIndex
(
IndexDTO
indexDTO
)
{
public
RestResponse
saveIndex
(
IndexDTO
indexDTO
)
{
if
(
indexDTO
.
get
IsAppIndex
()
==
null
||
if
(
indexDTO
.
get
ClassifyType
()
==
null
||
StringUtils
.
isBlank
(
indexDTO
.
getCode
())
||
StringUtils
.
isBlank
(
indexDTO
.
getCode
())
||
StringUtils
.
isBlank
(
indexDTO
.
getName
())
||
StringUtils
.
isBlank
(
indexDTO
.
getName
())
||
StringUtils
.
isBlank
(
indexDTO
.
getIndexRemark
()))
{
StringUtils
.
isBlank
(
indexDTO
.
getIndexRemark
()))
{
...
...
gic-data-cloud-service/src/main/java/com/gic/cloud/entity/TabIndex.java
View file @
7971e41d
...
@@ -109,7 +109,7 @@ public class TabIndex {
...
@@ -109,7 +109,7 @@ public class TabIndex {
/**
/**
* 是否展示 1展示 0不展示
* 是否展示 1展示 0不展示
*/
*/
private
Integer
show
;
private
Integer
show
Status
;
/**
/**
* 补充说明
* 补充说明
...
@@ -291,12 +291,12 @@ public class TabIndex {
...
@@ -291,12 +291,12 @@ public class TabIndex {
this
.
indexRemark
=
indexRemark
;
this
.
indexRemark
=
indexRemark
;
}
}
public
Integer
getShow
()
{
public
Integer
getShow
Status
()
{
return
show
;
return
show
Status
;
}
}
public
void
setShow
(
Integer
show
)
{
public
void
setShow
Status
(
Integer
showStatus
)
{
this
.
show
=
show
;
this
.
show
Status
=
showStatus
;
}
}
public
String
getComplement
()
{
public
String
getComplement
()
{
...
...
gic-data-cloud-service/src/main/resources/mapper/TabIndexMapper.xml
View file @
7971e41d
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
<result
column=
"update_rate"
jdbcType=
"VARCHAR"
property=
"updateRate"
/>
<result
column=
"update_rate"
jdbcType=
"VARCHAR"
property=
"updateRate"
/>
<result
column=
"update_rate_remark"
jdbcType=
"VARCHAR"
property=
"updateRateRemark"
/>
<result
column=
"update_rate_remark"
jdbcType=
"VARCHAR"
property=
"updateRateRemark"
/>
<result
column=
"index_remark"
jdbcType=
"VARCHAR"
property=
"indexRemark"
/>
<result
column=
"index_remark"
jdbcType=
"VARCHAR"
property=
"indexRemark"
/>
<result
column=
"show
"
jdbcType=
"INTEGER"
property=
"show
"
/>
<result
column=
"show
_status"
jdbcType=
"INTEGER"
property=
"showStatus
"
/>
<result
column=
"complement"
jdbcType=
"VARCHAR"
property=
"complement"
/>
<result
column=
"complement"
jdbcType=
"VARCHAR"
property=
"complement"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
index_id, classify_type, classify_name, is_app_index, rel_app_index, code, name,
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,
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,
data_type, index_type, base_organized, base_time, update_rate, update_rate_remark,
index_remark, `show`, complement, create_time, update_time, status
index_remark, `show
_status
`, complement, create_time, update_time, status
</sql>
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
select
select
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
rel_top_level, unit_code, unit_name,
rel_top_level, unit_code, unit_name,
decimal_size, data_type, index_type,
decimal_size, data_type, index_type,
base_organized, base_time, update_rate,
base_organized, base_time, update_rate,
update_rate_remark, index_remark, `show`,
update_rate_remark, index_remark, `show
_status
`,
complement, create_time, update_time,
complement, create_time, update_time,
status)
status)
values (#{indexId,jdbcType=INTEGER}, #{classifyType,jdbcType=INTEGER}, #{classifyName,jdbcType=VARCHAR},
values (#{indexId,jdbcType=INTEGER}, #{classifyType,jdbcType=INTEGER}, #{classifyName,jdbcType=VARCHAR},
...
@@ -60,7 +60,7 @@
...
@@ -60,7 +60,7 @@
#{relTopLevel,jdbcType=VARCHAR}, #{unitCode,jdbcType=INTEGER}, #{unitName,jdbcType=VARCHAR},
#{relTopLevel,jdbcType=VARCHAR}, #{unitCode,jdbcType=INTEGER}, #{unitName,jdbcType=VARCHAR},
#{decimalSize,jdbcType=INTEGER}, #{dataType,jdbcType=INTEGER}, #{indexType,jdbcType=INTEGER},
#{decimalSize,jdbcType=INTEGER}, #{dataType,jdbcType=INTEGER}, #{indexType,jdbcType=INTEGER},
#{baseOrganized,jdbcType=VARCHAR}, #{baseTime,jdbcType=VARCHAR}, #{updateRate,jdbcType=VARCHAR},
#{baseOrganized,jdbcType=VARCHAR}, #{baseTime,jdbcType=VARCHAR}, #{updateRate,jdbcType=VARCHAR},
#{updateRateRemark,jdbcType=VARCHAR}, #{indexRemark,jdbcType=VARCHAR}, #{show
,jdbcType=INTEGER},
#{updateRateRemark,jdbcType=VARCHAR}, #{indexRemark,jdbcType=VARCHAR}, #{show
Status,jdbcType=INTEGER},
#{complement,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{complement,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{status,jdbcType=INTEGER})
#{status,jdbcType=INTEGER})
</insert>
</insert>
...
@@ -130,8 +130,8 @@
...
@@ -130,8 +130,8 @@
<if
test=
"indexRemark != null"
>
<if
test=
"indexRemark != null"
>
index_remark,
index_remark,
</if>
</if>
<if
test=
"show != null"
>
<if
test=
"show
Status
!= null"
>
`show`
,
show_status
,
</if>
</if>
<if
test=
"complement != null"
>
<if
test=
"complement != null"
>
complement,
complement,
...
@@ -207,8 +207,8 @@
...
@@ -207,8 +207,8 @@
<if
test=
"indexRemark != null"
>
<if
test=
"indexRemark != null"
>
#{indexRemark,jdbcType=VARCHAR},
#{indexRemark,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"show != null"
>
<if
test=
"show
Status
!= null"
>
#{show,jdbcType=INTEGER},
#{show
Status
,jdbcType=INTEGER},
</if>
</if>
<if
test=
"complement != null"
>
<if
test=
"complement != null"
>
#{complement,jdbcType=VARCHAR},
#{complement,jdbcType=VARCHAR},
...
@@ -284,8 +284,8 @@
...
@@ -284,8 +284,8 @@
<if
test=
"indexRemark != null"
>
<if
test=
"indexRemark != null"
>
index_remark = #{indexRemark,jdbcType=VARCHAR},
index_remark = #{indexRemark,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"show != null"
>
<if
test=
"show
Status
!= null"
>
`show` = #{show
,jdbcType=INTEGER},
show_status = #{showStatus
,jdbcType=INTEGER},
</if>
</if>
<if
test=
"complement != null"
>
<if
test=
"complement != null"
>
complement = #{complement,jdbcType=VARCHAR},
complement = #{complement,jdbcType=VARCHAR},
...
@@ -323,7 +323,7 @@
...
@@ -323,7 +323,7 @@
update_rate = #{updateRate,jdbcType=VARCHAR},
update_rate = #{updateRate,jdbcType=VARCHAR},
update_rate_remark = #{updateRateRemark,jdbcType=VARCHAR},
update_rate_remark = #{updateRateRemark,jdbcType=VARCHAR},
index_remark = #{indexRemark,jdbcType=VARCHAR},
index_remark = #{indexRemark,jdbcType=VARCHAR},
`show` = #{show
,jdbcType=INTEGER},
show_status = #{showStatus
,jdbcType=INTEGER},
complement = #{complement,jdbcType=VARCHAR},
complement = #{complement,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
...
...
gic-data-cloud-service/src/test/java/com/gic/enterprise/service/outer/EnterpriseApiServiceImplTest.java
View file @
7971e41d
package
com
.
gic
.
enterprise
.
service
.
outer
;
package
com
.
gic
.
enterprise
.
service
.
outer
;
import
com.gic.cloud.constants.FunctionEnum
;
import
com.gic.cloud.dto.AccountGroupDTO
;
import
com.gic.cloud.dto.DataAuthDTO
;
import
com.gic.cloud.dto.FunctionDTO
;
import
com.gic.cloud.service.DataAuthApiService
;
import
com.gic.cloud.service.FunctionApiService
;
import
org.junit.Test
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.test.context.ContextConfiguration
;
import
org.springframework.test.context.ContextConfiguration
;
import
org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests
;
import
org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests
;
import
com.alibaba.fastjson.JSON
;
import
com.gic.cloud.service.AccountGroupApiService
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
/**
/**
* @author guojx
* @author guojx
* @date 2019/7/16 6:31 PM
* @date 2019/7/16 6:31 PM
*/
*/
@ContextConfiguration
(
locations
=
{
"classpath:applicationContext-conf.xml"
})
@ContextConfiguration
(
locations
=
{
"classpath:applicationContext-conf.xml"
})
public
class
EnterpriseApiServiceImplTest
extends
AbstractJUnit4SpringContextTests
{
public
class
EnterpriseApiServiceImplTest
extends
AbstractJUnit4SpringContextTests
{
@Autowired
private
AccountGroupApiService
accountGroupApiService
;
@Autowired
private
FunctionApiService
functionApiService
;
@Autowired
private
DataAuthApiService
dataAuthApiService
;
@Test
public
void
saveEnterprise
()
throws
Exception
{
// EnterpriseDTO dto = new EnterpriseDTO();
//
// ServiceResponse response = enterpriseApiService.saveEnterprise(dto);
// if (!response.isSuccess()) {
// System.out.println(response.getMessage());
// }
DataAuthDTO
dto
=
new
DataAuthDTO
().
setEnterpriseId
(
1129
).
setDataAuthName
(
"guojx"
);
System
.
out
.
println
(
JSON
.
toJSONString
(
dataAuthApiService
.
pageDataAuth
(
1129
,
null
,
null
,
null
)));
}
}
}
\ No newline at end of file
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