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
6cf31801
Commit
6cf31801
authored
Aug 04, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
消费构成-生日会员-趋势
parent
6c3525f8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
3 deletions
+39
-3
ConsumeStructureController.java
.../gic/cloud/web/controller/ConsumeStructureController.java
+39
-3
No files found.
gic-data-cloud-wxapp/src/main/java/com/gic/cloud/web/controller/ConsumeStructureController.java
View file @
6cf31801
...
...
@@ -9,9 +9,7 @@ import org.springframework.web.bind.annotation.RestController;
import
com.alibaba.fastjson.JSON
;
import
com.gic.cloud.web.auth.DataAuthUtils
;
import
com.gic.commons.webapi.reponse.RestResponse
;
import
com.gic.data.api.qo.consumestructure.AgeConsumeAreaQO
;
import
com.gic.data.api.qo.consumestructure.AgeConsumeShareQO
;
import
com.gic.data.api.qo.consumestructure.GradeConsumeTrendQO
;
import
com.gic.data.api.qo.consumestructure.*
;
import
com.gic.data.api.service.consumestructure.ConsumeStructureApiService
;
import
com.gic.enterprise.utils.ResultControllerUtils
;
...
...
@@ -69,4 +67,42 @@ public class ConsumeStructureController {
params
.
setStoreInfoIdList
(
storeSearchUtils
.
storeSearch
(
params
.
getUserId
(),
params
.
getEnterpriseId
(),
params
.
getSearchJson
()));
return
ResultControllerUtils
.
commonResult
(
consumeStructureApiService
.
queryGradeConsumeTrend
(
params
));
}
@RequestMapping
(
"get-grade-consume-survey"
)
public
RestResponse
getGradeConsumeSurvey
(
GradeConsumeTrendQO
params
)
{
log
.
info
(
"消费构成-等级-概况参数:{}"
,
JSON
.
toJSONString
(
params
));
params
.
setOnlineStoreIdList
(
storeSearchUtils
.
onLineStoreSearch
(
params
.
getUserId
(),
params
.
getEnterpriseId
(),
params
.
getSearchJson
()));
params
.
setStoreInfoIdList
(
storeSearchUtils
.
storeSearch
(
params
.
getUserId
(),
params
.
getEnterpriseId
(),
params
.
getSearchJson
()));
return
ResultControllerUtils
.
commonResult
(
consumeStructureApiService
.
queryGradeConsumeSurvey
(
params
));
}
@RequestMapping
(
"get-grade-consume-area"
)
public
RestResponse
queryGradeConsumeArea
(
GradeConsumeAreaQO
params
)
{
log
.
info
(
"消费构成-等级-区域参数:{}"
,
JSON
.
toJSONString
(
params
));
params
.
setOnlineStoreIdList
(
storeSearchUtils
.
onLineStoreSearch
(
params
.
getUserId
(),
params
.
getEnterpriseId
(),
params
.
getSearchJson
()));
params
.
setStoreInfoIdList
(
storeSearchUtils
.
storeSearch
(
params
.
getUserId
(),
params
.
getEnterpriseId
(),
params
.
getSearchJson
()));
if
(
params
.
getLevel
()
!=
null
)
{
params
.
setLevel
(
storeSearchUtils
.
getLevel
(
params
.
getUserId
(),
params
.
getEnterpriseId
(),
params
.
getSearchJson
()).
getLevel
());
}
params
.
setGroupIdList
(
storeSearchUtils
.
getChildrenStoreGroupIdList
(
params
.
getParentId
()));
return
ResultControllerUtils
.
commonResult
(
consumeStructureApiService
.
pageGradeConsumeArea
(
params
));
}
@RequestMapping
(
"get-birth-consume-rate"
)
public
RestResponse
getBirthConsumeRate
(
BirthConsumeRateQO
params
)
{
log
.
info
(
"消费构成-生日会员-占比参数:{}"
,
JSON
.
toJSONString
(
params
));
params
.
setOnlineStoreIdList
(
storeSearchUtils
.
onLineStoreSearch
(
params
.
getUserId
(),
params
.
getEnterpriseId
(),
params
.
getSearchJson
()));
params
.
setStoreInfoIdList
(
storeSearchUtils
.
storeSearch
(
params
.
getUserId
(),
params
.
getEnterpriseId
(),
params
.
getSearchJson
()));
params
.
setMemberCardIdList
(
dataAuthUtils
.
getMbrAreaId
(
params
.
getUserId
(),
params
.
getEnterpriseId
()));
return
ResultControllerUtils
.
commonResult
(
consumeStructureApiService
.
getBirthConsumeRate
(
params
));
}
@RequestMapping
(
"get-birth-consume-trend"
)
public
RestResponse
getBirthConsumeTrend
(
BirthConsumeRateQO
params
)
{
log
.
info
(
"消费构成-生日会员-趋势参数:{}"
,
JSON
.
toJSONString
(
params
));
params
.
setOnlineStoreIdList
(
storeSearchUtils
.
onLineStoreSearch
(
params
.
getUserId
(),
params
.
getEnterpriseId
(),
params
.
getSearchJson
()));
params
.
setStoreInfoIdList
(
storeSearchUtils
.
storeSearch
(
params
.
getUserId
(),
params
.
getEnterpriseId
(),
params
.
getSearchJson
()));
params
.
setMemberCardIdList
(
dataAuthUtils
.
getMbrAreaId
(
params
.
getUserId
(),
params
.
getEnterpriseId
()));
return
ResultControllerUtils
.
commonResult
(
consumeStructureApiService
.
queryBirthConsumeTrend
(
params
));
}
}
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