licailing 5 years ago
parent
commit
fa76ce353b

+ 1 - 1
src/main/java/com/izouma/dingdong/web/merchant/GoodsSpecificationController.java

@@ -84,7 +84,7 @@ public class GoodsSpecificationController extends BaseController {
 
 
     @PostMapping("/saveAll")
     @PostMapping("/saveAll")
     @ApiOperation("批量保存规格")
     @ApiOperation("批量保存规格")
-    public List<GoodsSpecification> saveAll(@RequestParam(value = "spec") List<GoodsSpecification> spec) {
+    public List<GoodsSpecification> saveAll(@RequestBody List<GoodsSpecification> spec) {
         return goodsSpecificationService.saveAll(spec);
         return goodsSpecificationService.saveAll(spec);
     }
     }
 }
 }