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
8621f41f
Commit
8621f41f
authored
Apr 01, 2024
by
guojx
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'bugfix-2024-04-beiga' into 'master'
销售接口调整:如果没有传渠道数据,则查询全渠道 See merge request
!1693
parents
6c586ee7
7d60736c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
DataController.java
...gic/haoban/manage/web/controller/data/DataController.java
+11
-0
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/data/DataController.java
View file @
8621f41f
...
...
@@ -41,6 +41,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
import
java.math.BigDecimal
;
import
java.util.*
;
import
java.util.stream.Collectors
;
import
java.util.stream.Stream
;
/**
* 数据调用通用接口
...
...
@@ -64,6 +65,10 @@ public class DataController {
@Autowired
private
ClerkService
clerkService
;
List
<
String
>
needSelectAllInterface
=
Stream
.
of
(
"data_sales_perf_anal_cont_custm_overview"
,
"data_sales_perf_anal_cont_custm_std_overview"
,
"data_sales_perf_anal_cont_day_overview"
,
"data_sales_perf_anal_cont_month_overview"
,
"data_sales_perf_anal_cont_week_overview"
,
"data_sales_perf_anal_cont_year_overview"
).
collect
(
Collectors
.
toList
());
private
String
isProd
()
{
Config
config
=
ConfigService
.
getConfig
(
"COMMON.gic-properties"
);
String
env
=
config
.
getProperty
(
"environment.value"
,
""
)
;
...
...
@@ -340,6 +345,12 @@ public class DataController {
}
String
apolloKey
=
qo
.
getApolloKey
();
if
(
needSelectAllInterface
.
contains
(
apolloKey
))
{
if
(
StringUtils
.
isBlank
(
jsonObject
.
getString
(
"orderChannel"
)))
{
jsonObject
.
put
(
"orderChannel"
,
"c_all"
);
}
}
boolean
notNeedStoreIdParam
=
"data_store_rank_index_info"
.
equals
(
apolloKey
);
if
(
notNeedStoreIdParam
&&
!
hasStoreId
)
{
jsonObject
.
remove
(
"storeId"
);
...
...
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