记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
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
董敬伟
liquidnet-bus-v1
Commits
a06bbb94
Commit
a06bbb94
authored
Feb 15, 2022
by
张国柄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
opt;
parent
c7f17547
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
GoblinStoreMgtGoodsController.java
...blin/controller/manage/GoblinStoreMgtGoodsController.java
+10
-1
No files found.
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/controller/manage/GoblinStoreMgtGoodsController.java
View file @
a06bbb94
...
...
@@ -32,6 +32,7 @@ import io.swagger.annotations.ApiOperation;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.util.CollectionUtils
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.*
;
...
...
@@ -51,7 +52,7 @@ import java.util.stream.IntStream;
@Api
(
tags
=
"商品管理"
)
@Slf4j
@Validated
@
Rest
Controller
@Controller
@RequestMapping
(
"store/mgt/goods"
)
public
class
GoblinStoreMgtGoodsController
{
@Autowired
...
...
@@ -66,6 +67,7 @@ public class GoblinStoreMgtGoodsController {
@ApiOperationSupport
(
order
=
1
)
@ApiOperation
(
value
=
"SPU列表"
)
@PostMapping
(
"list"
)
@ResponseBody
public
ResponseDto
<
PagedResult
<
GoblinStoreMgtGoodsListVo
>>
list
(
@Valid
@RequestBody
GoblinStoreMgtGoodsFilterParam
storeMgtGoodsFilterParam
)
{
String
currentUid
=
CurrentUtil
.
getCurrentUid
();
if
(!
goblinRedisUtils
.
hasStoreId
(
currentUid
,
storeMgtGoodsFilterParam
.
getStoreId
()))
{
...
...
@@ -120,6 +122,7 @@ public class GoblinStoreMgtGoodsController {
@ApiOperationSupport
(
order
=
3
)
@ApiOperation
(
value
=
"SPU管理"
)
@PostMapping
(
"operate"
)
@ResponseBody
public
ResponseDto
<
Object
>
action
(
@Valid
@RequestBody
GoblinStoreMgtGoodsActionParam
storeMgtGoodsActionParam
)
{
String
currentUid
=
CurrentUtil
.
getCurrentUid
();
if
(!
goblinRedisUtils
.
hasStoreId
(
currentUid
,
storeMgtGoodsActionParam
.
getStoreId
()))
{
...
...
@@ -149,6 +152,7 @@ public class GoblinStoreMgtGoodsController {
@ApiOperationSupport
(
order
=
4
)
@ApiOperation
(
value
=
"SPU添加"
)
@PutMapping
(
"add"
)
@ResponseBody
public
ResponseDto
<
Object
>
add
(
@Valid
@RequestBody
GoblinStoreMgtGoodsAddParam
storeMgtGoodsAddParam
)
{
String
currentUid
=
CurrentUtil
.
getCurrentUid
();
String
storeId
=
storeMgtGoodsAddParam
.
getStoreId
();
...
...
@@ -235,6 +239,7 @@ public class GoblinStoreMgtGoodsController {
@ApiImplicitParam
(
type
=
"form"
,
required
=
true
,
dataType
=
"String"
,
name
=
"spuId"
,
value
=
"商品ID"
),
})
@GetMapping
(
"info"
)
@ResponseBody
public
ResponseDto
<
GoblinStoreMgtGoodsInfoVo
>
info
(
@NotBlank
(
message
=
"店铺ID不能为空"
)
@RequestParam
String
storeId
,
@NotBlank
(
message
=
"商品ID不能为空"
)
@RequestParam
String
spuId
)
{
if
(!
goblinRedisUtils
.
hasStoreId
(
CurrentUtil
.
getCurrentUid
(),
storeId
))
{
...
...
@@ -249,6 +254,7 @@ public class GoblinStoreMgtGoodsController {
@ApiOperationSupport
(
order
=
6
)
@ApiOperation
(
value
=
"商品编辑:SPU编辑"
,
notes
=
"只修改商品信息,不包含规格相关信息"
)
@PostMapping
(
"edit_spu"
)
@ResponseBody
public
ResponseDto
<
Object
>
editSpu
(
@Valid
@RequestBody
GoblinStoreMgtGoodsAddParam
storeMgtGoodsAddParam
)
{
String
currentUid
=
CurrentUtil
.
getCurrentUid
();
String
storeId
=
storeMgtGoodsAddParam
.
getStoreId
();
...
...
@@ -285,6 +291,7 @@ public class GoblinStoreMgtGoodsController {
@ApiOperationSupport
(
order
=
7
)
@ApiOperation
(
value
=
"商品编辑:SKU编辑"
,
notes
=
"只修改单品信息,不包含商品信息"
)
@PostMapping
(
"edit_sku"
)
@ResponseBody
public
ResponseDto
<
Object
>
editSku
(
@Valid
@RequestBody
GoblinStoreMgtGoodsEditSkuParam
storeMgtGoodsEditSkuParam
)
{
String
currentUid
=
CurrentUtil
.
getCurrentUid
();
if
(!
goblinRedisUtils
.
hasStoreId
(
currentUid
,
storeMgtGoodsEditSkuParam
.
getStoreId
()))
{
...
...
@@ -423,6 +430,7 @@ public class GoblinStoreMgtGoodsController {
@ApiOperationSupport
(
order
=
8
)
@ApiOperation
(
value
=
"商品编辑:SKU添加"
)
@PutMapping
(
"edit_sku/add"
)
@ResponseBody
public
ResponseDto
<
Object
>
editSkuAdd
(
@Valid
@RequestBody
GoblinStoreMgtGoodsEditSkuParam
storeMgtGoodsEditSkuParam
)
{
String
currentUid
=
CurrentUtil
.
getCurrentUid
();
if
(!
goblinRedisUtils
.
hasStoreId
(
currentUid
,
storeMgtGoodsEditSkuParam
.
getStoreId
()))
{
...
...
@@ -496,6 +504,7 @@ public class GoblinStoreMgtGoodsController {
@ApiImplicitParam
(
type
=
"form"
,
required
=
true
,
dataType
=
"String"
,
name
=
"skuId"
,
value
=
"单品ID"
),
})
@PostMapping
(
"edit_sku/del"
)
@ResponseBody
public
ResponseDto
<
Object
>
editSkuDel
(
@NotBlank
(
message
=
"店铺ID不能为空"
)
String
storeId
,
@NotBlank
(
message
=
"单品ID不能为空"
)
String
skuId
)
{
String
currentUid
=
CurrentUtil
.
getCurrentUid
();
...
...
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