|
@@ -171,7 +171,7 @@ public class CmsGoodsDonSkuController {
|
|
|
* 批量上下架
|
|
* 批量上下架
|
|
|
*/
|
|
*/
|
|
|
@PutMapping("/batch/update/status/{goodsId}")
|
|
@PutMapping("/batch/update/status/{goodsId}")
|
|
|
- public Result<String> batchUpdateStatus(@PathVariable Long goodsId, @RequestBody List<Long> skuIds, Boolean status) {
|
|
|
|
|
|
|
+ public Result<String> batchUpdateStatus(@PathVariable Long goodsId, @RequestBody List<Long> skuIds, @RequestParam(defaultValue = "true") Boolean status) {
|
|
|
if (status == null) {
|
|
if (status == null) {
|
|
|
throw BusinessRuntimeException.getInstance("请选择上下架状态");
|
|
throw BusinessRuntimeException.getInstance("请选择上下架状态");
|
|
|
}
|
|
}
|