Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-webapp-plug
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-webapp-plug
Commits
6f4b7014
Commit
6f4b7014
authored
Mar 05, 2020
by
何文超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix
parent
81fdc198
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
GoodsSelectorController.java
...ic/plug/web/controller/goods/GoodsSelectorController.java
+4
-0
No files found.
src/main/java/com/gic/plug/web/controller/goods/GoodsSelectorController.java
View file @
6f4b7014
...
...
@@ -13,6 +13,7 @@ import com.gic.goods.api.dto.GoodsSelectorDTO;
import
com.gic.goods.api.service.GoodsRightsSelectorApiService
;
import
com.gic.goods.api.service.GoodsSelectorApiService
;
import
com.gic.goods.api.util.Constant
;
import
com.gic.mall.base.api.enums.ErrorCodeEnums
;
import
com.gic.plug.web.qo.goods.GoodsSelectorSaveQO
;
import
com.gic.plug.web.qo.goods.GoodsSelectorUpdateQO
;
import
com.gic.plug.web.vo.goods.GoodsSelectorVO
;
...
...
@@ -100,6 +101,9 @@ public class GoodsSelectorController {
@RequestMapping
(
"change-goods-rights-for-selector"
)
public
RestResponse
changeGoodsRightsForSelector
(
Long
goodsSelectorId
)
{
if
(
goodsSelectorId
==
null
)
{
return
RestResponse
.
failure
(
ErrorCodeEnums
.
MAll_ERR
.
getCode
(),
"请传入goodsSelectorId"
);
}
ServiceResponse
<
GoodsRightsSelectorDTO
>
goodsRightsSelectorDTOServiceResponse
=
goodsRightsSelectorApiService
.
getGoodsRightsSelector
(
UserDetailUtils
.
getUserDetail
().
getUserResourceInfo
().
getGoodsResourceId
(),
Constant
.
TEST_ENTERPRISE_ID
);
if
(!
goodsRightsSelectorDTOServiceResponse
.
isSuccess
())
{
return
RestResponse
.
failure
(
goodsRightsSelectorDTOServiceResponse
.
getCode
(),
goodsRightsSelectorDTOServiceResponse
.
getMessage
());
...
...
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