panhui 5 năm trước cách đây
mục cha
commit
9905c5dc15

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

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