|
|
@@ -143,8 +143,16 @@ public class YxSupplyChannelManualController {
|
|
|
|
|
|
JSONObject respJson = JSONObject.parseObject(resp);
|
|
|
if (respJson.getIntValue("code") != 0) {
|
|
|
+ log.info("查看商品详情失败,{}",req.getIds());
|
|
|
return Result.fail(respJson.getString("msg"));
|
|
|
}
|
|
|
+ //添加到我的选品库
|
|
|
+ resp = HttpUtil.restTemplatePost(prefixUrl + "/supplyapi/app/product/storage/addStorage", params, headers);
|
|
|
+ JSONObject respJson2 = JSONObject.parseObject(resp);
|
|
|
+ if (respJson2.getIntValue("code") != 0) {
|
|
|
+ log.info("添加选品库失败,{}",req.getIds());
|
|
|
+ return Result.fail(respJson2.getString("msg"));
|
|
|
+ }
|
|
|
|
|
|
return Result.success(respJson.getJSONObject("data"));
|
|
|
}
|