|
|
@@ -97,9 +97,9 @@ public class ProductController {
|
|
|
*/
|
|
|
@RequestMapping(value = "/update", method = RequestMethod.POST)
|
|
|
@ResponseBody
|
|
|
- public List<Long> updateProdInfo(@RequestBody String data, String sourceApp) throws UnsupportedEncodingException {
|
|
|
+ public List<Long> updateProdInfo(@RequestParam("data") String data, String sourceApp) throws UnsupportedEncodingException {
|
|
|
// TODO 物料信息中的企业UU和用户UU,需要在调用接口之前设置。有id为更新,无id为新增
|
|
|
- List<Product> productInfo = JSONObject.parseArray(data, Product.class);
|
|
|
+ List<Product> productInfo = JSONObject.parseArray(URLDecoder.decode(data, "utf-8"), Product.class);
|
|
|
List<Long> resultProducts = new ArrayList<>();
|
|
|
|
|
|
boolean fromB2B = sourceApp != null && sourceApp.equalsIgnoreCase("B2B");
|