Browse Source

企业物料库bug修改2

wangdy 7 years ago
parent
commit
1627b90bf5

+ 1 - 1
src/main/java/com/uas/ps/product/controller/ProductController.java

@@ -95,7 +95,7 @@ public class ProductController {
     @ResponseBody
     public List<Long> updateProdInfo(@RequestBody String data) throws UnsupportedEncodingException {
         // TODO 物料信息中的企业UU和用户UU,需要在调用接口之前设置。有id为更新,无id为新增
-        List<Product> productInfo = JSONObject.parseArray(URLDecoder.decode(data, "utf-8"), Product.class);
+        List<Product> productInfo = JSONObject.parseArray(data, Product.class);
         List<Long> resultProducts = new ArrayList<>();
 
         for (Product product : productInfo) {