廖井涛
2024-02-27 926a1e8b90381c7aa085d5462d78de9d2cc6034d
north-glass-erp/src/main/java/com/example/erp/service/sd/ProductService.java
@@ -47,7 +47,6 @@
    public boolean saveProduct(Map<String,Object>  productObject) {
        //把传入主附表的object类型转换成实体类类型
        JSONObject productJson = new JSONObject(productObject);
        System.out.println(JSONObject.toJSONString(productJson.get("title")));
        Product product = JSONObject.parseObject(JSONObject.toJSONString(productJson.get("title")), Product.class);
        List<ProductDetail> productDetails = JSONArray.parseArray(JSONObject.toJSONString(productJson.get("detail")), ProductDetail.class);