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
6e8d0438
Commit
6e8d0438
authored
Oct 12, 2019
by
guojuxing
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/developer' into developer
parents
8926e9ef
4a3bd0c9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
GoodsRightsSelectorController.java
...g/web/controller/goods/GoodsRightsSelectorController.java
+22
-0
No files found.
src/main/java/com/gic/plug/web/controller/goods/GoodsRightsSelectorController.java
View file @
6e8d0438
...
...
@@ -42,6 +42,28 @@ public class GoodsRightsSelectorController {
return
RestResponse
.
failure
(
serviceResponse
.
getCode
(),
serviceResponse
.
getMessage
());
}
/**
* @Title: goodsRightsSelectorSave
* @Description: 商品选择器选择后的预览
* @author majia
* @param goodsRightsSelectorSaveQO
* @return com.gic.commons.webapi.reponse.RestResponse
* @throws
*/
@RequestMapping
(
"/goods-rights-selector-show"
)
public
RestResponse
goodsRightsSelectorShow
(
GoodsRightsSelectorSaveQO
goodsRightsSelectorSaveQO
)
{
GoodsRightsSelectorDTO
goodsRightsSelectorDTO
=
EntityUtil
.
changeEntityByOrika
(
GoodsRightsSelectorDTO
.
class
,
goodsRightsSelectorSaveQO
);
if
(
goodsRightsSelectorDTO
.
getHasRights
()
==
null
)
{
goodsRightsSelectorDTO
.
setHasRights
(
Constant
.
NO
);
}
ServiceResponse
<
GoodsRightsSelectorDTO
>
serviceResponse
=
goodsRightsSelectorApiService
.
showGoodsRightsSelectorResult
(
goodsRightsSelectorDTO
);
if
(
serviceResponse
.
isSuccess
())
{
goodsRightsSelectorDTO
=
serviceResponse
.
getResult
();
return
RestResponse
.
success
(
EntityUtil
.
changeEntityByOrika
(
GoodsRightsSelectorVO
.
class
,
goodsRightsSelectorDTO
));
}
return
RestResponse
.
failure
(
serviceResponse
.
getCode
(),
serviceResponse
.
getMessage
());
}
@RequestMapping
(
"/goods-rights-selector-update"
)
public
RestResponse
goodsRightsSelectorSave
(
GoodsRightsSelectorUpdateQO
goodsRightsSelectorUpdateQO
)
{
GoodsRightsSelectorDTO
goodsRightsSelectorDTO
=
EntityUtil
.
changeEntityByOrika
(
GoodsRightsSelectorDTO
.
class
,
goodsRightsSelectorUpdateQO
);
...
...
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