Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
soss
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
hooloo
ms
soss
Commits
aab0b5e1
Commit
aab0b5e1
authored
Mar 06, 2023
by
weijiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
恢复部分代码
parent
1a707599
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
soss-admin/src/main/java/com/soss/web/controller/coffee/ShopController.java
+9
-2
No files found.
soss-admin/src/main/java/com/soss/web/controller/coffee/ShopController.java
View file @
aab0b5e1
...
...
@@ -16,6 +16,7 @@ import com.soss.system.service.impl.ShopGoodsServiceImpl;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.util.CollectionUtils
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.ArrayList
;
...
...
@@ -216,7 +217,13 @@ public class ShopController extends BaseController {
}
@GetMapping
(
"/updateShopGoodsSkuState"
)
public
AjaxResult
updateShopGoodsSkuState
(
@RequestParam
(
"id"
)
Long
shopGoodsSkuId
,
@RequestParam
(
"state"
)
Integer
state
)
{
return
AjaxResult
.
success
(
shopGoodsService
.
updateShopGoodsSkuState
(
shopGoodsSkuId
,
state
));
public
AjaxResult
updateShopGoodsSkuState
(
@RequestParam
(
"ids"
)
List
<
Long
>
shopGoodsSkuIds
,
@RequestParam
(
"state"
)
Integer
state
)
{
if
(
CollectionUtils
.
isEmpty
(
shopGoodsSkuIds
))
{
return
AjaxResult
.
error
(
"id列表为空"
);
}
for
(
Long
id
:
shopGoodsSkuIds
)
{
shopGoodsService
.
updateShopGoodsSkuState
(
id
,
state
);
}
return
AjaxResult
.
success
();
}
}
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