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
d125f46a
Commit
d125f46a
authored
Apr 29, 2024
by
guojx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
销售数据接口拆分优化
parent
7e5b41e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
16 deletions
+14
-16
DataController.java
...gic/haoban/manage/web/controller/data/DataController.java
+14
-16
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/data/DataController.java
View file @
d125f46a
...
@@ -333,12 +333,9 @@ public class DataController {
...
@@ -333,12 +333,9 @@ public class DataController {
@RequestMapping
(
value
=
"get-clerk-sales-data"
)
@RequestMapping
(
value
=
"get-clerk-sales-data"
)
@ResponseBody
@ResponseBody
public
RestResponse
getClerkSalesData
(
@RequestBody
ClerkDataDateSelectQO
qo
)
{
public
RestResponse
getClerkSalesData
(
@RequestBody
ClerkDataDateSelectQO
qo
)
{
HandleQO
handleQO
=
EntityUtil
.
changeEntityNew
(
HandleQO
.
class
,
qo
);
handleQO
.
setApolloKey
(
qo
.
getApolloKeyByType
());
JSONObject
jsonObject
=
(
JSONObject
)
JSONObject
.
toJSON
(
qo
.
getApiParam
());
JSONObject
jsonObject
=
(
JSONObject
)
JSONObject
.
toJSON
(
qo
.
getApiParam
());
jsonObject
.
put
(
"clerkId"
,
qo
.
getClerkId
());
jsonObject
.
put
(
"clerkId"
,
qo
.
getClerkId
());
handleQO
.
setParams
(
jsonObject
.
toJSONString
());
return
handle
(
getHandel
(
qo
,
qo
.
getApolloKeyByType
(),
jsonObject
.
toJSONString
()));
return
handle
(
handleQO
);
}
}
/**
/**
...
@@ -350,10 +347,8 @@ public class DataController {
...
@@ -350,10 +347,8 @@ public class DataController {
@RequestMapping
(
value
=
"get-clerk-group-data"
)
@RequestMapping
(
value
=
"get-clerk-group-data"
)
@ResponseBody
@ResponseBody
public
RestResponse
getClerkGroupData
(
@RequestBody
ClerkGroupDataQO
qo
)
{
public
RestResponse
getClerkGroupData
(
@RequestBody
ClerkGroupDataQO
qo
)
{
HandleQO
handleQO
=
EntityUtil
.
changeEntityNew
(
HandleQO
.
class
,
qo
);
return
handle
(
getHandel
(
qo
,
"data_sales_perf_anal_cont_clerk_group"
,
handleQO
.
setApolloKey
(
"data_sales_perf_anal_cont_clerk_group"
);
JSONObject
.
toJSONString
(
qo
.
getApiParam
())));
handleQO
.
setParams
(
JSONObject
.
toJSONString
(
qo
.
getApiParam
()));
return
handle
(
handleQO
);
}
}
/**
/**
...
@@ -365,10 +360,8 @@ public class DataController {
...
@@ -365,10 +360,8 @@ public class DataController {
@RequestMapping
(
value
=
"get-real-time-sales-data"
)
@RequestMapping
(
value
=
"get-real-time-sales-data"
)
@ResponseBody
@ResponseBody
public
RestResponse
getRelaTimeSalesData
(
@RequestBody
StoreRealTimeSalesQO
qo
)
{
public
RestResponse
getRelaTimeSalesData
(
@RequestBody
StoreRealTimeSalesQO
qo
)
{
HandleQO
handleQO
=
EntityUtil
.
changeEntityNew
(
HandleQO
.
class
,
qo
);
return
handle
(
getHandel
(
qo
,
"data_sales_perf_real_time_overview"
,
handleQO
.
setApolloKey
(
"data_sales_perf_real_time_overview"
);
JSONObject
.
toJSONString
(
qo
.
getApiParam
())));
handleQO
.
setParams
(
JSONObject
.
toJSONString
(
qo
.
getApiParam
()));
return
handle
(
handleQO
);
}
}
/**
/**
...
@@ -379,10 +372,15 @@ public class DataController {
...
@@ -379,10 +372,15 @@ public class DataController {
@RequestMapping
(
value
=
"get-store-sales-data"
)
@RequestMapping
(
value
=
"get-store-sales-data"
)
@ResponseBody
@ResponseBody
public
RestResponse
getStoreSales
(
@RequestBody
StoreSalesDataQO
qo
)
{
public
RestResponse
getStoreSales
(
@RequestBody
StoreSalesDataQO
qo
)
{
HandleQO
handleQO
=
EntityUtil
.
changeEntityNew
(
HandleQO
.
class
,
qo
);
return
handle
(
getHandel
(
qo
,
qo
.
getApolloKeyByType
(),
handleQO
.
setApolloKey
(
qo
.
getApolloKeyByType
());
JSONObject
.
toJSONString
(
qo
.
getApiParam
())));
handleQO
.
setParams
(
JSONObject
.
toJSONString
(
qo
.
getApiParam
()));
}
return
handle
(
handleQO
);
private
static
HandleQO
getHandel
(
CommonQO
commonQO
,
String
apolloKey
,
String
params
)
{
HandleQO
handleQO
=
EntityUtil
.
changeEntityNew
(
HandleQO
.
class
,
commonQO
);
handleQO
.
setApolloKey
(
apolloKey
);
handleQO
.
setParams
(
params
);
return
handleQO
;
}
}
/**
/**
...
...
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