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
4eee1986
Commit
4eee1986
authored
Dec 01, 2023
by
guojx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据接口超过90天调整名称
parent
114b3bfb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
DataController.java
...gic/haoban/manage/web/controller/data/DataController.java
+9
-4
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/data/DataController.java
View file @
4eee1986
...
...
@@ -10,6 +10,7 @@ import com.gic.commons.util.DataApiUtils;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.commons.util.GlobalVar
;
import
com.gic.commons.util.HttpClient
;
import
com.gic.commons.util.data.CrossDateUtils
;
import
com.gic.commons.webapi.reponse.RestResponse
;
import
com.gic.enterprise.api.dto.EnterpriseSettingDTO
;
import
com.gic.enterprise.api.dto.EnterpriseSourceChannelDTO
;
...
...
@@ -155,10 +156,14 @@ public class DataController {
jsonObject
.
put
(
"storeId"
,
storeIdList
.
stream
().
collect
(
Collectors
.
joining
(
","
)));
}
}
Map
<
String
,
Object
>
res
=
DataApiUtils
.
http
(
jsonObject
.
toJSONString
(),
qo
.
getApolloKey
());
String
apolloKey
=
qo
.
getApolloKey
();
boolean
isNeedFill
=
(
apolloKey
.
contains
(
"custom"
)
String
useApolloKey
=
CrossDateUtils
.
getUseApolloKey
(
jsonObject
==
null
?
null
:
jsonObject
.
getString
(
"startDate"
),
apolloKey
);
Map
<
String
,
Object
>
res
=
DataApiUtils
.
http
(
jsonObject
.
toJSONString
(),
useApolloKey
);
boolean
isNeedFill
=
(
apolloKey
.
contains
(
"data_mbr_scale_stat_new_custm_overview"
)
||
apolloKey
.
contains
(
"data_sales_perf_anal_cont_custm_overview"
)
||
apolloKey
.
contains
(
"month"
)
||
apolloKey
.
contains
(
"day"
)
||
apolloKey
.
contains
(
"week"
))
&&
jsonObject
.
containsKey
(
"storeGroup"
)
&&
...
...
@@ -178,7 +183,7 @@ public class DataController {
dateTypeList
=
DateFillUtils
.
getMonth
(
jsonObject
.
getString
(
"startDate"
).
substring
(
0
,
7
));
}
else
if
(
apolloKey
.
contains
(
"week"
))
{
dateTypeList
=
DateFillUtils
.
getWeek
(
jsonObject
.
getString
(
"startDate"
));
}
else
if
(
apolloKey
.
contains
(
"cust
o
m"
))
{
}
else
if
(
apolloKey
.
contains
(
"custm"
))
{
dateTypeList
=
DateFillUtils
.
getCustom
(
jsonObject
.
getString
(
"startDate"
),
jsonObject
.
getString
(
"endDate"
));
}
if
(
CollectionUtils
.
isNotEmpty
(
dateTypeList
))
{
...
...
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