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