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
4adf4839
Commit
4adf4839
authored
Sep 23, 2022
by
墨竹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:首页销售数据
parent
7c2f3b1c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
StoreController.java
...com/gic/haoban/manage/web/controller/StoreController.java
+5
-7
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/StoreController.java
View file @
4adf4839
...
@@ -166,21 +166,19 @@ public class StoreController extends WebBaseController {
...
@@ -166,21 +166,19 @@ public class StoreController extends WebBaseController {
//获取首页销售数据
//获取首页销售数据
@RequestMapping
(
"/sale-date"
)
@RequestMapping
(
"/sale-date"
)
public
HaobanResponse
saleDate
(
String
storeId
,
String
clerkType
,
String
clerkId
,
List
<
String
>
storeIds
)
{
public
HaobanResponse
saleDate
(
String
storeId
,
String
clerkType
,
String
clerkId
,
String
enterpriseId
,
List
<
String
>
storeIds
)
{
if
(
StringUtils
.
isAnyBlank
(
storeId
,
clerkType
,
clerkId
))
{
if
(
StringUtils
.
isAnyBlank
(
storeId
,
clerkType
,
clerkId
))
{
return
resultResponse
(
HaoBanErrCode
.
ERR_2
);
return
resultResponse
(
HaoBanErrCode
.
ERR_2
);
}
}
StoreDTO
store
=
storeService
.
getStore
(
storeId
);
if
(
StringUtils
.
isNotBlank
(
storeId
))
{
if
(
store
==
null
)
{
storeIds
.
add
(
storeId
);
return
resultResponse
(
HaoBanErrCode
.
ERR_111146
);
}
}
String
enterpriseId
=
store
.
getEnterpriseId
();
String
date
=
DateUtil
.
format
(
new
Date
(),
"yyyy-MM-dd"
);
String
date
=
DateUtil
.
format
(
new
Date
(),
"yyyy-MM-dd"
);
if
(
"0"
.
equals
(
clerkType
))
{
if
(
"0"
.
equals
(
clerkType
))
{
HaobanDataDTO
HaobanDataDTO
=
haobanDataApiService
.
getSaleDataByDateByClerkId
(
enterpriseId
,
storeId
,
clerkId
,
date
);
HaobanDataDTO
HaobanDataDTO
=
haobanDataApiService
.
getSaleDataByDateByClerkId
(
enterpriseId
,
storeId
s
,
clerkId
,
date
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
HaobanDataDTO
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
HaobanDataDTO
);
}
}
HaobanDataDTO
HaobanDataDTO
=
haobanDataApiService
.
getSaleDataByDate
(
enterpriseId
,
storeId
,
date
);
HaobanDataDTO
HaobanDataDTO
=
haobanDataApiService
.
getSaleDataByDate
(
enterpriseId
,
storeId
s
,
date
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
HaobanDataDTO
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
HaobanDataDTO
);
}
}
...
...
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