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
f810151c
Commit
f810151c
authored
Jun 21, 2021
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门店控件查询
parent
2a3587a7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
72 additions
and
9 deletions
+72
-9
IndexDescApiService.java
.../main/java/com/gic/cloud/service/IndexDescApiService.java
+10
-0
IndexModuleRelService.java
...ain/java/com/gic/cloud/service/IndexModuleRelService.java
+13
-1
UpdateTipService.java
...src/main/java/com/gic/cloud/service/UpdateTipService.java
+10
-0
IndexModuleRelServiceImpl.java
...com/gic/cloud/service/impl/IndexModuleRelServiceImpl.java
+7
-0
UpdateTipServiceImpl.java
...java/com/gic/cloud/service/impl/UpdateTipServiceImpl.java
+20
-8
IndexDescApiServiceImpl.java
...gic/cloud/service/outer/impl/IndexDescApiServiceImpl.java
+6
-0
IndexDescController.java
...ava/com/gic/cloud/web/controller/IndexDescController.java
+6
-0
No files found.
gic-data-cloud-api/src/main/java/com/gic/cloud/service/IndexDescApiService.java
View file @
f810151c
...
...
@@ -150,4 +150,14 @@ public interface IndexDescApiService {
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Void>
*/
ServiceResponse
<
Void
>
init
(
Integer
enterpriseId
);
/***
* init
* @Title: init
* @Description: 初始化红点数据
* @author taogs
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Void>
* @throws
*/
ServiceResponse
<
Void
>
init
();
}
gic-data-cloud-service/src/main/java/com/gic/cloud/service/IndexModuleRelService.java
View file @
f810151c
...
...
@@ -84,4 +84,15 @@ public interface IndexModuleRelService {
* @return java.util.List<java.lang.String>
*/
List
<
String
>
listRelModuleId
(
Integer
type
);
}
/**
* listAllIndex
* @Title: listAllIndex
* @Description: 获取所有的指标
* @author taogs
* @param type
* @return java.util.List<java.lang.Integer>
* @throws
*/
List
<
Integer
>
listAllIndex
(
Integer
type
);
}
\ No newline at end of file
gic-data-cloud-service/src/main/java/com/gic/cloud/service/UpdateTipService.java
View file @
f810151c
...
...
@@ -67,4 +67,14 @@ public interface UpdateTipService {
* @return java.util.Map<java.lang.Integer,com.gic.cloud.entity.TabUpdateTips>
*/
Map
<
Integer
,
TabUpdateTips
>
mapByIndexIdAndUser
(
List
<
Integer
>
indexIdList
,
int
type
,
Integer
userId
);
/**
* init
* @Title: init
* @Description: 初始化红点
* @author taogs
* @return void
* @throws
*/
void
init
();
}
gic-data-cloud-service/src/main/java/com/gic/cloud/service/impl/IndexModuleRelServiceImpl.java
View file @
f810151c
...
...
@@ -77,4 +77,11 @@ public class IndexModuleRelServiceImpl implements IndexModuleRelService {
return
Optional
.
ofNullable
(
relList
).
orElse
(
Collections
.
emptyList
())
.
stream
().
map
(
TabIndexModuleRel:
:
getModuleId
).
collect
(
Collectors
.
toList
());
}
@Override
public
List
<
Integer
>
listAllIndex
(
Integer
type
)
{
List
<
TabIndexModuleRel
>
relList
=
tabIndexModuleRelMapper
.
listModuleIdByBusinessIds
(
null
,
type
);
return
Optional
.
ofNullable
(
relList
).
orElse
(
Collections
.
emptyList
())
.
stream
().
map
(
TabIndexModuleRel:
:
getBusinessId
).
collect
(
Collectors
.
toList
());
}
}
gic-data-cloud-service/src/main/java/com/gic/cloud/service/impl/UpdateTipServiceImpl.java
View file @
f810151c
...
...
@@ -3,17 +3,11 @@ package com.gic.cloud.service.impl;
import
com.gic.auth.service.UserApiService
;
import
com.gic.cloud.constants.LogAndUpdateTipsTypeEnum
;
import
com.gic.cloud.dao.mapper.TabUpdateTipsMapper
;
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.entity.*
;
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
;
import
com.gic.cloud.service.UpdateTipService
;
import
com.gic.cloud.service.UserService
;
import
com.gic.cloud.service.*
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
...
...
@@ -39,6 +33,8 @@ public class UpdateTipServiceImpl implements UpdateTipService {
private
IndexService
indexService
;
@Autowired
private
DataExplainService
dataExplainService
;
@Autowired
private
IndexModuleRelService
indexModuleRelService
;
@Override
public
void
insertBySaveUser
(
Integer
userId
)
{
...
...
@@ -100,4 +96,20 @@ public class UpdateTipServiceImpl implements UpdateTipService {
}
@Override
public
void
init
()
{
List
<
Integer
>
list
=
userApiService
.
listAllUser
(
null
).
getResult
();
List
<
Integer
>
indexIdList
=
indexModuleRelService
.
listAllIndex
(
1
);
for
(
Integer
userId
:
list
)
{
for
(
Integer
businessId
:
indexIdList
){
TabUpdateTips
tabUpdateTips
=
new
TabUpdateTips
();
tabUpdateTips
.
setUserId
(
userId
);
tabUpdateTips
.
setBusinessId
(
businessId
);
tabUpdateTips
.
setShowStatus
(
1
);
tabUpdateTips
.
setType
(
1
);
tabUpdateTipsMapper
.
insertSelective
(
tabUpdateTips
);
}
}
}
}
gic-data-cloud-service/src/main/java/com/gic/cloud/service/outer/impl/IndexDescApiServiceImpl.java
View file @
f810151c
...
...
@@ -137,4 +137,10 @@ public class IndexDescApiServiceImpl implements IndexDescApiService {
this
.
indexDescService
.
init
(
enterpriseId
);
return
ServiceResponse
.
success
();
}
@Override
public
ServiceResponse
<
Void
>
init
()
{
this
.
updateTipService
.
init
();
return
ServiceResponse
.
success
();
}
}
gic-data-cloud-wxapp/src/main/java/com/gic/cloud/web/controller/IndexDescController.java
View file @
f810151c
...
...
@@ -78,4 +78,9 @@ public class IndexDescController {
ServiceResponse
<
DataExplainDTO
>
serviceResponse
=
dataExplainApiService
.
listByModule
(
moduleId
);
return
ResultControllerUtils
.
commonResult
(
serviceResponse
);
}
@RequestMapping
(
"init"
)
public
RestResponse
init
(){
indexDescApiService
.
init
();
return
RestResponse
.
success
();
}
}
\ 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