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
3b0faf8e
Commit
3b0faf8e
authored
Apr 16, 2020
by
何文超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix
parent
07b1c41e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
GoodsRightsSelectorController.java
...g/web/controller/goods/GoodsRightsSelectorController.java
+6
-2
No files found.
src/main/java/com/gic/plug/web/controller/goods/GoodsRightsSelectorController.java
View file @
3b0faf8e
...
...
@@ -3,13 +3,14 @@ package com.gic.plug.web.controller.goods;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.commons.webapi.reponse.RestResponse
;
import
com.gic.enterprise.utils.UserDetailUtils
;
import
com.gic.goods.api.dto.GoodsRightsSelectorDTO
;
import
com.gic.goods.api.service.GoodsRightsSelectorApiService
;
import
com.gic.goods.api.util.Constant
;
import
com.gic.plug.web.qo.goods.GoodsRightsSelectorSaveQO
;
import
com.gic.plug.web.qo.goods.GoodsRightsSelectorUpdateQO
;
import
com.gic.plug.web.vo.goods.GoodsRightsSelectorVO
;
import
org.apache.logging.log4j.LogManager
;
import
org.apache.logging.log4j.Logger
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
...
...
@@ -20,6 +21,8 @@ public class GoodsRightsSelectorController extends BaseGoodsController {
@Autowired
private
GoodsRightsSelectorApiService
goodsRightsSelectorApiService
;
private
Logger
log
=
LogManager
.
getLogger
(
GoodsSelectorController
.
class
);
/**
* @Title: BaseGoodsController
* @Description: 保存商品选择器权限版
...
...
@@ -80,8 +83,9 @@ public class GoodsRightsSelectorController extends BaseGoodsController {
@RequestMapping
(
"/get-goods-rights-selector"
)
public
RestResponse
getGoodsRightsSelector
(
Long
goodsRightsSelectorId
)
{
ServiceResponse
<
GoodsRightsSelectorDTO
>
serviceResponse
=
goodsRightsSelectorApiService
.
getGoodsRightsSelector
(
goodsRightsSelectorId
,
getEnterpriseId
(),
UserDetailUtils
.
getUserDetail
().
getUserInfo
().
getSuperAdmin
()
);
getEnterpriseId
(),
0
);
if
(
serviceResponse
.
isSuccess
())
{
GoodsRightsSelectorDTO
goodsRightsSelectorDTO
=
serviceResponse
.
getResult
();
return
RestResponse
.
success
(
EntityUtil
.
changeEntityByOrika
(
GoodsRightsSelectorVO
.
class
,
goodsRightsSelectorDTO
));
...
...
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