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
4ba539f4
Commit
4ba539f4
authored
Jul 13, 2020
by
zhiwj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
批量发布
parent
0d13bb0c
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
68 additions
and
21 deletions
+68
-21
DataExplainQO.java
...oud-api/src/main/java/com/gic/cloud/qo/DataExplainQO.java
+9
-0
DataExplainApiService.java
...ain/java/com/gic/cloud/service/DataExplainApiService.java
+10
-0
IndexApiService.java
.../src/main/java/com/gic/cloud/service/IndexApiService.java
+10
-0
DataExplainService.java
...c/main/java/com/gic/cloud/service/DataExplainService.java
+1
-1
IndexService.java
...ice/src/main/java/com/gic/cloud/service/IndexService.java
+1
-1
DataExplainServiceImpl.java
...va/com/gic/cloud/service/impl/DataExplainServiceImpl.java
+2
-2
IndexServiceImpl.java
...ain/java/com/gic/cloud/service/impl/IndexServiceImpl.java
+1
-1
UpdateTipServiceImpl.java
...java/com/gic/cloud/service/impl/UpdateTipServiceImpl.java
+4
-2
DataExplainApiServiceImpl.java
...c/cloud/service/outer/impl/DataExplainApiServiceImpl.java
+8
-0
IndexApiServiceImpl.java
...com/gic/cloud/service/outer/impl/IndexApiServiceImpl.java
+8
-0
TabIndexMapper.xml
...loud-service/src/main/resources/mapper/TabIndexMapper.xml
+14
-14
No files found.
gic-data-cloud-api/src/main/java/com/gic/cloud/qo/DataExplainQO.java
View file @
4ba539f4
...
...
@@ -11,6 +11,7 @@ public class DataExplainQO extends PageQO implements Serializable {
private
static
final
long
serialVersionUID
=
5687670215343610800L
;
private
String
search
;
private
String
moduleId
;
public
String
getSearch
()
{
return
search
;
...
...
@@ -19,4 +20,12 @@ public class DataExplainQO extends PageQO implements Serializable {
public
void
setSearch
(
String
search
)
{
this
.
search
=
search
;
}
public
String
getModuleId
()
{
return
moduleId
;
}
public
void
setModuleId
(
String
moduleId
)
{
this
.
moduleId
=
moduleId
;
}
}
gic-data-cloud-api/src/main/java/com/gic/cloud/service/DataExplainApiService.java
View file @
4ba539f4
...
...
@@ -72,4 +72,14 @@ public interface DataExplainApiService {
* @throws
*/
ServiceResponse
<
Void
>
publish
(
List
<
Integer
>
dataExplainIdList
);
/**
* @Title: listByModule
* @Description:
* @author zhiwj
* @param moduleId
* @return com.gic.api.base.commons.ServiceResponse<java.util.List<com.gic.cloud.dto.IndexDTO>>
* @throws
*/
ServiceResponse
<
List
<
DataExplainDTO
>>
listByModule
(
String
moduleId
);
}
gic-data-cloud-api/src/main/java/com/gic/cloud/service/IndexApiService.java
View file @
4ba539f4
...
...
@@ -73,4 +73,14 @@ public interface IndexApiService {
* @throws
*/
ServiceResponse
<
Void
>
publish
(
List
<
Integer
>
indexIdList
);
/**
* @Title: listByModule
* @Description:
* @author zhiwj
* @param moduleId
* @return com.gic.api.base.commons.ServiceResponse<java.util.List<com.gic.cloud.dto.IndexDTO>>
* @throws
*/
ServiceResponse
<
List
<
IndexDTO
>>
listByModule
(
String
moduleId
);
}
gic-data-cloud-service/src/main/java/com/gic/cloud/service/DataExplainService.java
View file @
4ba539f4
...
...
@@ -24,7 +24,7 @@ public interface DataExplainService {
Page
<
TabDataExplain
>
listDataExplain
(
DataExplainQO
dataExplainQO
);
List
<
TabDataExplain
>
listAllDataExplain
();
List
<
TabDataExplain
>
listAllDataExplain
(
DataExplainQO
dataExplainQO
);
void
deleteById
(
Integer
dataExplainId
);
}
gic-data-cloud-service/src/main/java/com/gic/cloud/service/IndexService.java
View file @
4ba539f4
...
...
@@ -26,7 +26,7 @@ public interface IndexService {
Page
<
TabIndex
>
listIndex
(
IndexQO
indexQO
);
List
<
TabIndex
>
listAllIndex
();
List
<
TabIndex
>
listAllIndex
(
IndexQO
indexQO
);
void
deleteById
(
Integer
indexId
);
}
gic-data-cloud-service/src/main/java/com/gic/cloud/service/impl/DataExplainServiceImpl.java
View file @
4ba539f4
...
...
@@ -60,8 +60,8 @@ public class DataExplainServiceImpl implements DataExplainService {
}
@Override
public
List
<
TabDataExplain
>
listAllDataExplain
()
{
return
tabDataExplainMapper
.
listDataExplain
(
new
DataExplainQO
()
);
public
List
<
TabDataExplain
>
listAllDataExplain
(
DataExplainQO
dataExplainQO
)
{
return
tabDataExplainMapper
.
listDataExplain
(
dataExplainQO
);
}
@Override
...
...
gic-data-cloud-service/src/main/java/com/gic/cloud/service/impl/IndexServiceImpl.java
View file @
4ba539f4
...
...
@@ -69,7 +69,7 @@ public class IndexServiceImpl implements IndexService {
}
@Override
public
List
<
TabIndex
>
listAllIndex
()
{
public
List
<
TabIndex
>
listAllIndex
(
IndexQO
indexQO
)
{
return
tabIndexMapper
.
listIndex
(
new
IndexQO
());
}
...
...
gic-data-cloud-service/src/main/java/com/gic/cloud/service/impl/UpdateTipServiceImpl.java
View file @
4ba539f4
...
...
@@ -6,6 +6,8 @@ import com.gic.cloud.entity.TabDataExplain;
import
com.gic.cloud.entity.TabIndex
;
import
com.gic.cloud.entity.TabSysUser
;
import
com.gic.cloud.entity.TabUpdateTips
;
import
com.gic.cloud.qo.DataExplainQO
;
import
com.gic.cloud.qo.IndexQO
;
import
com.gic.cloud.qo.UserQO
;
import
com.gic.cloud.service.DataExplainService
;
import
com.gic.cloud.service.IndexService
;
...
...
@@ -35,7 +37,7 @@ public class UpdateTipServiceImpl implements UpdateTipService {
@Override
public
void
insertBySaveUser
(
Integer
userId
)
{
List
<
TabIndex
>
indexList
=
indexService
.
listAllIndex
();
List
<
TabIndex
>
indexList
=
indexService
.
listAllIndex
(
new
IndexQO
()
);
for
(
TabIndex
index
:
indexList
)
{
TabUpdateTips
tabUpdateTips
=
new
TabUpdateTips
();
tabUpdateTips
.
setUserId
(
userId
);
...
...
@@ -44,7 +46,7 @@ public class UpdateTipServiceImpl implements UpdateTipService {
tabUpdateTips
.
setType
(
LogAndUpdateTipsTypeEnum
.
INDEX
.
getCode
());
tabUpdateTipsMapper
.
insertSelective
(
tabUpdateTips
);
}
List
<
TabDataExplain
>
dataExplainList
=
dataExplainService
.
listAllDataExplain
();
List
<
TabDataExplain
>
dataExplainList
=
dataExplainService
.
listAllDataExplain
(
new
DataExplainQO
()
);
for
(
TabDataExplain
dataExplain
:
dataExplainList
)
{
TabUpdateTips
tabUpdateTips
=
new
TabUpdateTips
();
tabUpdateTips
.
setUserId
(
userId
);
...
...
gic-data-cloud-service/src/main/java/com/gic/cloud/service/outer/impl/DataExplainApiServiceImpl.java
View file @
4ba539f4
...
...
@@ -104,4 +104,12 @@ public class DataExplainApiServiceImpl implements DataExplainApiService {
}
return
EnterpriseServiceResponse
.
success
();
}
@Override
public
ServiceResponse
<
List
<
DataExplainDTO
>>
listByModule
(
String
moduleId
)
{
DataExplainQO
dataExplainQO
=
new
DataExplainQO
();
dataExplainQO
.
setModuleId
(
moduleId
);
List
<
TabDataExplain
>
dataExplainList
=
dataExplainService
.
listAllDataExplain
(
dataExplainQO
);
return
EnterpriseServiceResponse
.
success
(
EntityUtil
.
changeEntityListByJSON
(
DataExplainDTO
.
class
,
dataExplainList
));
}
}
gic-data-cloud-service/src/main/java/com/gic/cloud/service/outer/impl/IndexApiServiceImpl.java
View file @
4ba539f4
...
...
@@ -131,4 +131,12 @@ public class IndexApiServiceImpl implements IndexApiService {
}
return
EnterpriseServiceResponse
.
success
();
}
@Override
public
ServiceResponse
<
List
<
IndexDTO
>>
listByModule
(
String
moduleId
)
{
IndexQO
indexQO
=
new
IndexQO
();
indexQO
.
setModuleId
(
moduleId
);
List
<
TabIndex
>
indexList
=
indexService
.
listAllIndex
(
indexQO
);
return
EnterpriseServiceResponse
.
success
(
EntityUtil
.
changeEntityListByJSON
(
IndexDTO
.
class
,
indexList
));
}
}
gic-data-cloud-service/src/main/resources/mapper/TabIndexMapper.xml
View file @
4ba539f4
...
...
@@ -354,20 +354,19 @@
select
<include
refid=
"Base_Column_List"
/>
from tab_index
<where>
<if
test=
"classifyType != null "
>
and classify_type = #{classifyType}
</if>
<if
test=
"moduleId != null "
>
and module_id = #{moduleId}
</if>
<if
test=
"isAppIndex != null "
>
and is_app_index = #{isAppIndex}
</if>
<if
test=
"search != null and search != '' "
>
and name like concat('%', #{search}, '%')
</if>
</where>
where status = 1
<if
test=
"classifyType != null "
>
and classify_type = #{classifyType}
</if>
<if
test=
"moduleId != null "
>
and module_id = #{moduleId}
</if>
<if
test=
"isAppIndex != null "
>
and is_app_index = #{isAppIndex}
</if>
<if
test=
"search != null and search != '' "
>
and name like concat('%', #{search}, '%')
</if>
order by create_time desc
</select>
</mapper>
\ 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