Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_ht
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
pseer
gxpt_ht
Commits
9e0290c3
Commit
9e0290c3
authored
Nov 17, 2023
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加根据session获取门店信息
parent
fc76bb6d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
SStoreController.java
...in/java/share/web/controller/system/SStoreController.java
+10
-0
QPServiceImpl.java
...rc/main/java/share/system/service/impl/QPServiceImpl.java
+4
-0
No files found.
share-admin/src/main/java/share/web/controller/system/SStoreController.java
View file @
9e0290c3
...
...
@@ -4,6 +4,7 @@ import java.util.List;
import
java.util.Map
;
import
javax.servlet.http.HttpServletResponse
;
import
com.dianping.openapi.sdk.api.customerauth.session.entity.CustomerKeyShopScopeResponseEntity
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -28,6 +29,7 @@ import share.system.domain.vo.SConsumerVo;
import
share.system.service.ISStoreService
;
import
share.common.utils.poi.ExcelUtil
;
import
share.common.core.page.TableDataInfo
;
import
share.system.service.QPService
;
import
share.system.service.SConsumerService
;
/**
...
...
@@ -44,6 +46,8 @@ public class SStoreController extends BaseController
private
ISStoreService
sStoreService
;
@Autowired
private
SConsumerService
sConsumerService
;
@Autowired
private
QPService
qpService
;
/**
* 查询门店列表
...
...
@@ -182,4 +186,10 @@ public class SStoreController extends BaseController
}
@GetMapping
(
"/scope"
)
public
List
<
CustomerKeyShopScopeResponseEntity
>
scope
()
{
return
qpService
.
scope
();
}
}
share-system/src/main/java/share/system/service/impl/QPServiceImpl.java
View file @
9e0290c3
...
...
@@ -345,6 +345,10 @@ public class QPServiceImpl implements QPService {
@Override
public
List
<
CustomerKeyShopScopeResponseEntity
>
scope
()
{
Boolean
b
=
redisUtil
.
exists
(
ReceiptRdeisEnum
.
MT_SESSION_KEY
.
getValue
());
if
(
Boolean
.
FALSE
.
equals
(
b
))
{
throw
new
RuntimeException
(
"请联系管理员"
);
}
DefaultOpenAPIClient
openAPIClient
=
new
DefaultOpenAPIClient
();
String
o
=
redisUtil
.
get
(
ReceiptRdeisEnum
.
MT_SESSION_KEY
.
getValue
());
JSONObject
sessionKey
=
new
JSONObject
(
o
);
...
...
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