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
16a389a8
Commit
16a389a8
authored
Sep 16, 2019
by
何文超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新商品选择器权限版
parent
3e284f39
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
284 additions
and
3 deletions
+284
-3
GoodsRightsSelectorController.java
...g/web/controller/goods/GoodsRightsSelectorController.java
+52
-3
GoodsSelectorController.java
...ic/plug/web/controller/goods/GoodsSelectorController.java
+10
-0
GoodsRightsSelectorSaveQO.java
.../com/gic/plug/web/qo/goods/GoodsRightsSelectorSaveQO.java
+31
-0
GoodsRightsSelectorUpdateQO.java
...om/gic/plug/web/qo/goods/GoodsRightsSelectorUpdateQO.java
+45
-0
GoodsRightsSelectorVO.java
...java/com/gic/plug/web/vo/goods/GoodsRightsSelectorVO.java
+135
-0
GoodsSelectorVO.java
src/main/java/com/gic/plug/web/vo/goods/GoodsSelectorVO.java
+10
-0
dubbo-gic-webapp-plug.xml
src/main/resources/dubbo-gic-webapp-plug.xml
+1
-0
No files found.
src/main/java/com/gic/plug/web/controller/goods/GoodsRightsSelectorController.java
View file @
16a389a8
package
com
.
gic
.
plug
.
web
.
controller
.
goods
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
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.service.GoodsRightsSelectorApiService
;
import
com.gic.plug.web.qo.goods.GoodsRightsSelectorSaveQO
;
import
com.gic.plug.web.qo.goods.GoodsRightsSelectorUpdateQO
;
import
com.gic.plug.web.vo.goods.GoodsRightsSelectorVO
;
@RestController
public
class
GoodsRightsSelectorController
{
/* @RequestMapping("goods-rights-selector-save")
public RestResponse () {
@Autowired
private
GoodsRightsSelectorApiService
goodsRightsSelectorApiService
;
/**
* @Title: goodsRightsSelectorSave
* @Description: 保存商品选择器权限版
* @author majia
* @param goodsRightsSelectorSaveQO
* @return com.gic.commons.webapi.reponse.RestResponse
* @throws
*/
@RequestMapping
(
"/goods-rights-selector-save"
)
public
RestResponse
goodsRightsSelectorSave
(
GoodsRightsSelectorSaveQO
goodsRightsSelectorSaveQO
)
{
GoodsRightsSelectorDTO
goodsRightsSelectorDTO
=
EntityUtil
.
changeEntityByOrika
(
GoodsRightsSelectorDTO
.
class
,
goodsRightsSelectorSaveQO
);
ServiceResponse
<
GoodsRightsSelectorDTO
>
serviceResponse
=
goodsRightsSelectorApiService
.
saveGoodsRightsSelector
(
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
);
ServiceResponse
<
GoodsRightsSelectorDTO
>
serviceResponse
=
goodsRightsSelectorApiService
.
updateGoodsRightsSelector
(
goodsRightsSelectorDTO
);
if
(
serviceResponse
.
isSuccess
())
{
goodsRightsSelectorDTO
=
serviceResponse
.
getResult
();
return
RestResponse
.
success
(
EntityUtil
.
changeEntityByOrika
(
GoodsRightsSelectorVO
.
class
,
goodsRightsSelectorDTO
));
}
return
RestResponse
.
failure
(
serviceResponse
.
getCode
(),
serviceResponse
.
getMessage
());
}
}*/
@RequestMapping
(
"/get-goods-rights-selector"
)
public
RestResponse
getGoodsRightsSelector
(
Long
goodsRightsSelectorId
)
{
ServiceResponse
<
GoodsRightsSelectorDTO
>
serviceResponse
=
goodsRightsSelectorApiService
.
getGoodsRightsSelector
(
goodsRightsSelectorId
);
if
(
serviceResponse
.
isSuccess
())
{
GoodsRightsSelectorDTO
goodsRightsSelectorDTO
=
serviceResponse
.
getResult
();
return
RestResponse
.
success
(
EntityUtil
.
changeEntityByOrika
(
GoodsRightsSelectorVO
.
class
,
goodsRightsSelectorDTO
));
}
return
RestResponse
.
failure
(
serviceResponse
.
getCode
(),
serviceResponse
.
getMessage
());
}
}
src/main/java/com/gic/plug/web/controller/goods/GoodsSelectorController.java
View file @
16a389a8
...
...
@@ -8,6 +8,7 @@ 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.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.plug.web.qo.goods.GoodsSelectorSaveQO
;
...
...
@@ -20,6 +21,8 @@ public class GoodsSelectorController {
@Autowired
private
GoodsSelectorApiService
goodsSelectorApiService
;
@Autowired
private
GoodsRightsSelectorApiService
goodsRightsSelectorApiService
;
@RequestMapping
(
"goods-selector-show-back"
)
public
RestResponse
goodsSelectorShowBack
(
Long
goodsSelectorId
)
{
...
...
@@ -54,6 +57,13 @@ public class GoodsSelectorController {
}
@RequestMapping
(
"change-goods-rights-for-selector"
)
public
RestResponse
changeGoodsRightsForSelector
(
Long
goodsSelectorId
)
{
goodsRightsSelectorApiService
.
getGoodsRightsSelector
(
1234L
);
return
null
;
}
@RequestMapping
(
"goods-selector-update"
)
public
RestResponse
goodsSelectorUpdate
(
GoodsSelectorUpdateQO
goodsSelectorUpdateQO
)
{
...
...
src/main/java/com/gic/plug/web/qo/goods/GoodsRightsSelectorSaveQO.java
0 → 100644
View file @
16a389a8
package
com
.
gic
.
plug
.
web
.
qo
.
goods
;
public
class
GoodsRightsSelectorSaveQO
{
/**
* 搜索时使用的值
*/
private
String
goodsRightsSearchValue
;
/**
* 编辑回显的值
*/
private
String
goodsRightSearchEdit
;
public
String
getGoodsRightsSearchValue
()
{
return
goodsRightsSearchValue
;
}
public
void
setGoodsRightsSearchValue
(
String
goodsRightsSearchValue
)
{
this
.
goodsRightsSearchValue
=
goodsRightsSearchValue
;
}
public
String
getGoodsRightSearchEdit
()
{
return
goodsRightSearchEdit
;
}
public
void
setGoodsRightSearchEdit
(
String
goodsRightSearchEdit
)
{
this
.
goodsRightSearchEdit
=
goodsRightSearchEdit
;
}
}
src/main/java/com/gic/plug/web/qo/goods/GoodsRightsSelectorUpdateQO.java
0 → 100644
View file @
16a389a8
package
com
.
gic
.
plug
.
web
.
qo
.
goods
;
public
class
GoodsRightsSelectorUpdateQO
{
/**
*
*/
private
Long
goodsRightsSelectorId
;
/**
* 搜索时使用的值
*/
private
String
goodsRightsSearchValue
;
/**
* 编辑回显的值
*/
private
String
goodsRightSearchEdit
;
public
Long
getGoodsRightsSelectorId
()
{
return
goodsRightsSelectorId
;
}
public
void
setGoodsRightsSelectorId
(
Long
goodsRightsSelectorId
)
{
this
.
goodsRightsSelectorId
=
goodsRightsSelectorId
;
}
public
String
getGoodsRightsSearchValue
()
{
return
goodsRightsSearchValue
;
}
public
void
setGoodsRightsSearchValue
(
String
goodsRightsSearchValue
)
{
this
.
goodsRightsSearchValue
=
goodsRightsSearchValue
;
}
public
String
getGoodsRightSearchEdit
()
{
return
goodsRightSearchEdit
;
}
public
void
setGoodsRightSearchEdit
(
String
goodsRightSearchEdit
)
{
this
.
goodsRightSearchEdit
=
goodsRightSearchEdit
;
}
}
src/main/java/com/gic/plug/web/vo/goods/GoodsRightsSelectorVO.java
0 → 100644
View file @
16a389a8
package
com
.
gic
.
plug
.
web
.
vo
.
goods
;
import
java.util.Date
;
public
class
GoodsRightsSelectorVO
{
/**
*
*/
private
Long
goodsRightsSelectorId
;
/**
* 企业id
*/
private
Integer
enterpriseId
;
/**
* 是否删除
*/
private
Integer
deleteFlag
;
/**
* 创建时间
*/
private
Date
createTime
;
/**
* 更新时间
*/
private
Date
updateTime
;
/**
* 搜索时使用的值
*/
private
String
goodsRightsSearchValue
;
/**
* 默认状态回显的值
*/
private
String
goodsRightsSearchText
;
/**
* 编辑回显的值
*/
private
String
goodsRightSearchEdit
;
/**
* 权限内的domainid{"channelCode":[domainId1,domainId2]}
*/
private
String
goodsRightsDomains
;
/**
* 权限内的brandId{"channelCode_domainId":[brandId1,brandId2]}
*/
private
String
goodsRightsBrands
;
public
Long
getGoodsRightsSelectorId
()
{
return
goodsRightsSelectorId
;
}
public
void
setGoodsRightsSelectorId
(
Long
goodsRightsSelectorId
)
{
this
.
goodsRightsSelectorId
=
goodsRightsSelectorId
;
}
public
Integer
getEnterpriseId
()
{
return
enterpriseId
;
}
public
void
setEnterpriseId
(
Integer
enterpriseId
)
{
this
.
enterpriseId
=
enterpriseId
;
}
public
Integer
getDeleteFlag
()
{
return
deleteFlag
;
}
public
void
setDeleteFlag
(
Integer
deleteFlag
)
{
this
.
deleteFlag
=
deleteFlag
;
}
public
Date
getCreateTime
()
{
return
createTime
;
}
public
void
setCreateTime
(
Date
createTime
)
{
this
.
createTime
=
createTime
;
}
public
Date
getUpdateTime
()
{
return
updateTime
;
}
public
void
setUpdateTime
(
Date
updateTime
)
{
this
.
updateTime
=
updateTime
;
}
public
String
getGoodsRightsSearchValue
()
{
return
goodsRightsSearchValue
;
}
public
void
setGoodsRightsSearchValue
(
String
goodsRightsSearchValue
)
{
this
.
goodsRightsSearchValue
=
goodsRightsSearchValue
;
}
public
String
getGoodsRightsSearchText
()
{
return
goodsRightsSearchText
;
}
public
void
setGoodsRightsSearchText
(
String
goodsRightsSearchText
)
{
this
.
goodsRightsSearchText
=
goodsRightsSearchText
;
}
public
String
getGoodsRightSearchEdit
()
{
return
goodsRightSearchEdit
;
}
public
void
setGoodsRightSearchEdit
(
String
goodsRightSearchEdit
)
{
this
.
goodsRightSearchEdit
=
goodsRightSearchEdit
;
}
public
String
getGoodsRightsDomains
()
{
return
goodsRightsDomains
;
}
public
void
setGoodsRightsDomains
(
String
goodsRightsDomains
)
{
this
.
goodsRightsDomains
=
goodsRightsDomains
;
}
public
String
getGoodsRightsBrands
()
{
return
goodsRightsBrands
;
}
public
void
setGoodsRightsBrands
(
String
goodsRightsBrands
)
{
this
.
goodsRightsBrands
=
goodsRightsBrands
;
}
}
src/main/java/com/gic/plug/web/vo/goods/GoodsSelectorVO.java
View file @
16a389a8
...
...
@@ -29,6 +29,8 @@ public class GoodsSelectorVO {
*/
private
Integer
searchResultType
;
private
Long
findCount
;
public
Long
getGoodsSelectorId
()
{
return
goodsSelectorId
;
...
...
@@ -101,4 +103,12 @@ public class GoodsSelectorVO {
public
void
setSearchResultType
(
Integer
searchResultType
)
{
this
.
searchResultType
=
searchResultType
;
}
public
Long
getFindCount
()
{
return
findCount
;
}
public
void
setFindCount
(
Long
findCount
)
{
this
.
findCount
=
findCount
;
}
}
src/main/resources/dubbo-gic-webapp-plug.xml
View file @
16a389a8
...
...
@@ -42,6 +42,7 @@
<dubbo:reference
interface=
"com.gic.goods.api.service.PropertyApiService"
id=
"propertyApiService"
timeout=
"60000"
retries=
"0"
/>
<dubbo:reference
interface=
"com.gic.goods.api.service.BrandApiService"
id=
"brandApiService"
timeout=
"60000"
retries=
"0"
/>
<dubbo:reference
interface=
"com.gic.goods.api.service.GoodsSelectorApiService"
id=
"goodsSelectorApiService"
timeout=
"60000"
retries=
"0"
/>
<dubbo:reference
interface=
"com.gic.goods.api.service.GoodsRightsSelectorApiService"
id=
"goodsRightsSelectorApiService"
timeout=
"60000"
retries=
"0"
/>
<!-- -->
<dubbo:reference
id=
"tagApiService"
interface=
"com.gic.goods.api.service.TagApiService"
timeout=
"60000"
retries=
"0"
check=
"false"
/>
<dubbo:reference
id=
"cordApiService"
interface=
"com.gic.goods.api.service.CordApiService"
timeout=
"60000"
retries=
"0"
check=
"false"
/>
...
...
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