Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-store
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-store
Commits
bafa79b8
Commit
bafa79b8
authored
Oct 08, 2019
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门店授权
parent
da052414
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
StoreController.java
...in/java/com/gic/store/web/controller/StoreController.java
+3
-3
No files found.
gic-store-web/src/main/java/com/gic/store/web/controller/StoreController.java
View file @
bafa79b8
...
...
@@ -54,7 +54,7 @@ public class StoreController {
@RequestMapping
(
"/save-store"
)
public
RestResponse
saveOrUpdate
(
@Validated
({
StoreQO
.
SaveValidView
.
class
})
StoreQO
storeQO
)
{
Integer
enterpriseId
=
1111
;
Integer
enterpriseId
=
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
()
;
StoreDTO
storeDTO
=
EntityUtil
.
changeEntityByOrika
(
StoreDTO
.
class
,
storeQO
);
storeDTO
.
setEnterpriseId
(
enterpriseId
);
String
photos
=
storeQO
.
getPhotos
();
...
...
@@ -85,7 +85,7 @@ public class StoreController {
@RequestMapping
(
"/store-detail"
)
public
RestResponse
getStoreDetail
(
Integer
storeId
)
{
Integer
enterpriseId
=
1111
;
Integer
enterpriseId
=
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
()
;
ServiceResponse
<
StoreDTO
>
serviceResponse
=
storeApiService
.
getStoreById
(
enterpriseId
,
storeId
);
if
(
serviceResponse
.
isSuccess
())
{
return
RestResponse
.
success
(
serviceResponse
.
getResult
());
...
...
@@ -190,7 +190,7 @@ public class StoreController {
@RequestMapping
(
"bulk-update-store"
)
public
RestResponse
bulkUpdateStatus
(
String
storeIds
,
String
value
,
int
type
)
{
Integer
enterpriseId
=
1111
;
Integer
enterpriseId
=
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
()
;
if
(
StringUtils
.
isBlank
(
storeIds
)
||
StringUtils
.
isBlank
(
value
))
{
return
EnterpriseRestResponse
.
failure
(
ErrorCode
.
MISS_PARAMETER
);
}
...
...
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