Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
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
haoban3.0
haoban-manage3.0
Commits
e5617289
Commit
e5617289
authored
Nov 24, 2023
by
guojx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
渠道字典数据
parent
6ad83167
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
DataController.java
...gic/haoban/manage/web/controller/data/DataController.java
+22
-0
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/data/DataController.java
View file @
e5617289
package
com
.
gic
.
haoban
.
manage
.
web
.
controller
.
data
;
import
com.alibaba.fastjson.JSONObject
;
import
com.gic.api.base.commons.Page
;
import
com.gic.commons.util.DataApiUtils
;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.commons.webapi.reponse.RestResponse
;
import
com.gic.enterprise.api.dto.data.DataIndexEvaluateLogDTO
;
import
com.gic.enterprise.api.dto.data.DataIndexExplainDTO
;
import
com.gic.enterprise.api.service.data.DataIndexApiService
;
import
com.gic.enterprise.service.CustomSettingApiService
;
import
com.gic.haoban.manage.web.qo.data.DataIndexExplainVO
;
import
com.gic.haoban.manage.web.qo.data.DataIndexQO
;
import
com.gic.haoban.manage.web.qo.data.HandleQO
;
...
...
@@ -37,6 +39,8 @@ public class DataController {
private
StoreAuthUtils
storeAuthUtils
;
@Autowired
private
DataIndexApiService
dataIndexApiService
;
@Autowired
private
CustomSettingApiService
customSettingApiService
;
/**
* 数据统一调用接口
...
...
@@ -102,6 +106,24 @@ public class DataController {
return
RestResponse
.
successResult
();
}
/**
* 渠道字典数据
* 说明:channelCode (渠道code,数据接口需要传的)
* channelNameIntegral 会员类型的名称
* channelNameOrder 订单业绩的名称
* @param enterpriseId
* @return
*/
@RequestMapping
(
"list-channel-data"
)
public
RestResponse
listChannelData
(
String
enterpriseId
)
{
Page
<
JSONObject
>
page
=
customSettingApiService
.
page
(
"tab_gic_channel_platform_dict"
,
""
,
1
,
1000
).
getResult
();
if
(
page
!=
null
)
{
return
RestResponse
.
successResult
(
page
.
getResult
());
}
return
RestResponse
.
successResult
(
new
ArrayList
<>());
}
private
JSONObject
getTotalJson
(
JSONObject
param
,
String
apolloKey
)
{
Map
<
String
,
Object
>
totalRes
=
DataApiUtils
.
http
(
param
.
toJSONString
(),
apolloKey
);
...
...
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