panhui 5 лет назад
Родитель
Сommit
a03aa3f02d

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

@@ -19,6 +19,7 @@ import org.springframework.web.bind.annotation.*;
 
 import javax.servlet.http.HttpServletResponse;
 import java.io.IOException;
+import java.sql.Wrapper;
 import java.util.List;
 
 @RestController
@@ -84,7 +85,7 @@ public class GoodsSpecificationController extends BaseController {
 
     @PostMapping("/saveAll")
     @ApiOperation("批量保存规格")
-    public List<GoodsSpecification> saveAll( @RequestBody Wrapper<GoodsSpecification> wrappedResources ) {
+    public List<GoodsSpecification> saveAll( @RequestBody Wrapper wrappedResources ) {
         List<GoodsSpecification> spec = wrappedResources.getData();
         return goodsSpecificationService.saveAll(spec);
     }