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
fd41f770
Commit
fd41f770
authored
Sep 20, 2019
by
何文超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新刷新权限
parent
8d12a803
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
GoodsSelectorController.java
...ic/plug/web/controller/goods/GoodsSelectorController.java
+12
-2
No files found.
src/main/java/com/gic/plug/web/controller/goods/GoodsSelectorController.java
View file @
fd41f770
...
...
@@ -7,6 +7,7 @@ import org.springframework.web.bind.annotation.RestController;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.commons.webapi.reponse.RestResponse
;
import
com.gic.goods.api.dto.GoodsRightsSelectorDTO
;
import
com.gic.goods.api.dto.GoodsSelectorDTO
;
import
com.gic.goods.api.service.GoodsRightsSelectorApiService
;
import
com.gic.goods.api.service.GoodsSelectorApiService
;
...
...
@@ -69,8 +70,17 @@ public class GoodsSelectorController {
@RequestMapping
(
"change-goods-rights-for-selector"
)
public
RestResponse
changeGoodsRightsForSelector
(
Long
goodsSelectorId
)
{
goodsRightsSelectorApiService
.
getGoodsRightsSelector
(
1234L
);
return
null
;
ServiceResponse
<
GoodsRightsSelectorDTO
>
goodsRightsSelectorDTOServiceResponse
=
goodsRightsSelectorApiService
.
getGoodsRightsSelector
(
1234L
);
if
(!
goodsRightsSelectorDTOServiceResponse
.
isSuccess
())
{
return
RestResponse
.
failure
(
goodsRightsSelectorDTOServiceResponse
.
getCode
(),
goodsRightsSelectorDTOServiceResponse
.
getMessage
());
}
GoodsRightsSelectorDTO
goodsRightsSelectorDTO
=
goodsRightsSelectorDTOServiceResponse
.
getResult
();
ServiceResponse
<
GoodsSelectorDTO
>
serviceResponse
=
goodsSelectorApiService
.
updateGoodsSelectorRights
(
goodsSelectorId
,
goodsRightsSelectorDTO
.
getGoodsRightsSearchText
(),
goodsRightsSelectorDTO
.
getGoodsRightsSearchValue
());
if
(!
serviceResponse
.
isSuccess
())
{
return
RestResponse
.
failure
(
serviceResponse
.
getCode
(),
serviceResponse
.
getMessage
());
}
return
RestResponse
.
success
(
serviceResponse
.
getResult
());
}
...
...
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