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
28d83210
Commit
28d83210
authored
Mar 18, 2025
by
xiehongfei
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'bug-fix/erqian' into 'master'
fix: 修正get-real-time-sales-data See merge request
!2613
parents
ba45ff37
0647b4e1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
64 additions
and
2 deletions
+64
-2
DataController.java
...gic/haoban/manage/web/controller/data/DataController.java
+17
-1
StoreRealTimeSalesApiQO.java
...ic/haoban/manage/web/qo/data/StoreRealTimeSalesApiQO.java
+47
-1
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/data/DataController.java
View file @
28d83210
...
@@ -6,6 +6,7 @@ import com.ctrip.framework.apollo.Config;
...
@@ -6,6 +6,7 @@ import com.ctrip.framework.apollo.Config;
import
com.ctrip.framework.apollo.ConfigService
;
import
com.ctrip.framework.apollo.ConfigService
;
import
com.gic.api.base.commons.Page
;
import
com.gic.api.base.commons.Page
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.clerk.api.dto.ClerkDTO
;
import
com.gic.clerk.api.dto.ClerkListDTO
;
import
com.gic.clerk.api.dto.ClerkListDTO
;
import
com.gic.clerk.api.service.ClerkService
;
import
com.gic.clerk.api.service.ClerkService
;
import
com.gic.commons.util.DataApiUtils
;
import
com.gic.commons.util.DataApiUtils
;
...
@@ -371,7 +372,22 @@ public class DataController {
...
@@ -371,7 +372,22 @@ 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
)
{
return
handle
(
getHandel
(
qo
,
"data_sales_perf_real_time_overview"
,
// return handle(getHandel(qo, "data_sales_perf_real_time_overview",
// JSONObject.toJSONString(qo.getApiParam())));
ClerkDTO
clerkDTO
=
clerkService
.
getClerkByClerkId
(
qo
.
getClerkId
());
StoreRealTimeSalesApiQO
apiParam
=
qo
.
getApiParam
();
if
(
clerkDTO
!=
null
)
{
Integer
clerkType
=
clerkDTO
.
getClerkType
();
if
(
clerkType
==
1
||
clerkType
==
2
||
clerkType
==
3
)
{
apiParam
.
setIsClerk
(
0
);
}
else
{
apiParam
.
setIsClerk
(
1
);
}
}
else
{
apiParam
.
setIsClerk
(
1
);
}
return
handle
(
getHandel
(
qo
,
"data_sales_perf_real_time_overview_hb"
,
JSONObject
.
toJSONString
(
qo
.
getApiParam
())));
JSONObject
.
toJSONString
(
qo
.
getApiParam
())));
}
}
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/qo/data/StoreRealTimeSalesApiQO.java
View file @
28d83210
package
com
.
gic
.
haoban
.
manage
.
web
.
qo
.
data
;
package
com
.
gic
.
haoban
.
manage
.
web
.
qo
.
data
;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.ToString
;
import
java.io.Serializable
;
import
java.io.Serializable
;
...
@@ -8,7 +9,7 @@ import java.io.Serializable;
...
@@ -8,7 +9,7 @@ import java.io.Serializable;
* @Author guojx
* @Author guojx
* @Date 2024/4/29 15:29
* @Date 2024/4/29 15:29
*/
*/
@
Data
@
ToString
public
class
StoreRealTimeSalesApiQO
implements
Serializable
{
public
class
StoreRealTimeSalesApiQO
implements
Serializable
{
private
String
storeId
;
private
String
storeId
;
...
@@ -26,4 +27,49 @@ public class StoreRealTimeSalesApiQO implements Serializable {
...
@@ -26,4 +27,49 @@ public class StoreRealTimeSalesApiQO implements Serializable {
* 店长不用传,导购需要
* 店长不用传,导购需要
*/
*/
private
String
clerkId
;
private
String
clerkId
;
/**
* 区经、店长传查询门店,导购传查询导购
*/
private
Integer
isClerk
;
public
String
getStoreId
()
{
return
storeId
;
}
public
void
setStoreId
(
String
storeId
)
{
this
.
storeId
=
storeId
;
}
public
String
getOrderChannel
()
{
return
orderChannel
;
}
public
void
setOrderChannel
(
String
orderChannel
)
{
this
.
orderChannel
=
orderChannel
;
}
public
Integer
getStoreGroup
()
{
return
storeGroup
;
}
public
void
setStoreGroup
(
Integer
storeGroup
)
{
this
.
storeGroup
=
storeGroup
;
}
public
String
getClerkId
()
{
return
clerkId
;
}
public
void
setClerkId
(
String
clerkId
)
{
this
.
clerkId
=
clerkId
;
}
public
Integer
getIsClerk
()
{
return
isClerk
;
}
public
void
setIsClerk
(
Integer
isClerk
)
{
this
.
isClerk
=
isClerk
;
}
}
}
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