Commit 1c02dbc4 authored by wangxiaoshuang's avatar wangxiaoshuang

wxs

parent 711f0b44
...@@ -56,36 +56,276 @@ public class DuibadoUpdateObject { ...@@ -56,36 +56,276 @@ public class DuibadoUpdateObject {
return response; return response;
} }
//多规格实物---兑吧商品 //多规格实物---兑吧商品
public Response moreDoUpdateObject(String name) throws Exception { public Response moreDoUpdateObject(String name,String memo) throws Exception {
String url="http://"+ManagerHost+"/goods/object/doUpdateObject"; String url="http://"+ManagerHost+"/goods/object/doUpdateObject";
Map<String,Object> map = new HashMap<>(); Map<String,Object> map = new HashMap<>();
map.put("",""); map.put("attributes","[{id: \"161\", skuInfo: {}, specId: \"30\",…}, {id: \"162\", skuInfo: {}, specId: \"30\",…},…]");
map.put("",""); map.put("type","object");
map.put("",""); map.put("multiImage","//yun.dui88.com/images/201812/pxstomsmtn.png");
map.put("",""); map.put("preSaasMallVTypeList","[]");
map.put("",""); map.put("expressType","unity");
map.put("",""); map.put("directRecharge","0");
map.put("",""); map.put("multiSku","true");
map.put("",""); map.put("attrsCopy","[\n" +
map.put("",""); " {\n" +
map.put("",""); " \"30\":\"161\",\n" +
map.put("",""); " \"31\":\"164\",\n" +
map.put("",""); " \"skuInfo\":{\n" +
map.put("",""); " \"remaining\":\"1\",\n" +
map.put("",""); " \"salePrice\":\"2\",\n" +
map.put("",""); " \"suggestMarketPrice\":\"9\",\n" +
map.put("",""); " \"facePrice\":\"11\"\n" +
map.put("",""); " },\n" +
map.put("",""); " \"guigeId\":\"31\",\n" +
map.put("",""); " \"id\":\"164\",\n" +
map.put("",""); " \"attributeValue\":\"红色\"\n" +
map.put("",""); " },\n" +
map.put("",""); " {\n" +
map.put("",""); " \"30\":\"161\",\n" +
map.put("",""); " \"31\":\"165\",\n" +
map.put("",""); " \"skuInfo\":{\n" +
map.put("",""); " \"remaining\":\"2\",\n" +
" \"salePrice\":\"3\",\n" +
" \"suggestMarketPrice\":\"19.99\",\n" +
" \"facePrice\":\"\"\n" +
" },\n" +
" \"guigeId\":\"31\",\n" +
" \"id\":\"165\",\n" +
" \"attributeValue\":\"黑色\"\n" +
" },\n" +
" {\n" +
" \"30\":\"162\",\n" +
" \"31\":\"164\",\n" +
" \"skuInfo\":{\n" +
" \"remaining\":\"3\",\n" +
" \"salePrice\":\"4\",\n" +
" \"suggestMarketPrice\":\"22\"\n" +
" },\n" +
" \"guigeId\":\"31\",\n" +
" \"id\":\"164\",\n" +
" \"attributeValue\":\"红色\"\n" +
" },\n" +
" {\n" +
" \"30\":\"162\",\n" +
" \"31\":\"165\",\n" +
" \"skuInfo\":{\n" +
" \"remaining\":\"4\",\n" +
" \"salePrice\":\"5\",\n" +
" \"suggestMarketPrice\":\"0.01\",\n" +
" \"facePrice\":\"12\"\n" +
" },\n" +
" \"guigeId\":\"31\",\n" +
" \"id\":\"165\",\n" +
" \"attributeValue\":\"黑色\"\n" +
" },\n" +
" {\n" +
" \"30\":\"163\",\n" +
" \"31\":\"164\",\n" +
" \"skuInfo\":{\n" +
" \"remaining\":\"5\",\n" +
" \"salePrice\":\"6\",\n" +
" \"suggestMarketPrice\":\"0.02\",\n" +
" \"facePrice\":\"21\"\n" +
" },\n" +
" \"guigeId\":\"31\",\n" +
" \"id\":\"164\",\n" +
" \"attributeValue\":\"红色\"\n" +
" },\n" +
" {\n" +
" \"30\":\"163\",\n" +
" \"31\":\"165\",\n" +
" \"skuInfo\":{\n" +
" \"remaining\":\"6\",\n" +
" \"salePrice\":\"7\",\n" +
" \"suggestMarketPrice\":\"2\"\n" +
" },\n" +
" \"guigeId\":\"31\",\n" +
" \"id\":\"165\",\n" +
" \"attributeValue\":\"黑色\"\n" +
" }\n" +
" ]");
map.put("name",name);
map.put("memo",memo);
map.put("smallImage","//yun.dui88.com/images/201812/n78va2s3at.jpg");
map.put("oldTableData","[\n" +
" {\n" +
" \"30\":\"161\",\n" +
" \"31\":\"164\",\n" +
" \"skuInfo\":{\n" +
" \"remaining\":\"1\",\n" +
" \"salePrice\":\"2\",\n" +
" \"suggestMarketPrice\":\"9\",\n" +
" \"facePrice\":\"11\"\n" +
" },\n" +
" \"guigeId\":\"31\",\n" +
" \"id\":\"164\",\n" +
" \"attributeValue\":\"红色\"\n" +
" },\n" +
" {\n" +
" \"30\":\"161\",\n" +
" \"31\":\"165\",\n" +
" \"skuInfo\":{\n" +
" \"remaining\":\"2\",\n" +
" \"salePrice\":\"3\",\n" +
" \"suggestMarketPrice\":\"19.99\",\n" +
" \"facePrice\":\"\"\n" +
" },\n" +
" \"guigeId\":\"31\",\n" +
" \"id\":\"165\",\n" +
" \"attributeValue\":\"黑色\"\n" +
" },\n" +
" {\n" +
" \"30\":\"162\",\n" +
" \"31\":\"164\",\n" +
" \"skuInfo\":{\n" +
" \"remaining\":\"3\",\n" +
" \"salePrice\":\"4\",\n" +
" \"suggestMarketPrice\":\"22\"\n" +
" },\n" +
" \"guigeId\":\"31\",\n" +
" \"id\":\"164\",\n" +
" \"attributeValue\":\"红色\"\n" +
" },\n" +
" {\n" +
" \"30\":\"162\",\n" +
" \"31\":\"165\",\n" +
" \"skuInfo\":{\n" +
" \"remaining\":\"4\",\n" +
" \"salePrice\":\"5\",\n" +
" \"suggestMarketPrice\":\"0.01\",\n" +
" \"facePrice\":\"12\"\n" +
" },\n" +
" \"guigeId\":\"31\",\n" +
" \"id\":\"165\",\n" +
" \"attributeValue\":\"黑色\"\n" +
" },\n" +
" {\n" +
" \"30\":\"163\",\n" +
" \"31\":\"164\",\n" +
" \"skuInfo\":{\n" +
" \"remaining\":\"5\",\n" +
" \"salePrice\":\"6\",\n" +
" \"suggestMarketPrice\":\"0.02\",\n" +
" \"facePrice\":\"21\"\n" +
" },\n" +
" \"guigeId\":\"31\",\n" +
" \"id\":\"164\",\n" +
" \"attributeValue\":\"红色\"\n" +
" },\n" +
" {\n" +
" \"30\":\"163\",\n" +
" \"31\":\"165\",\n" +
" \"skuInfo\":{\n" +
" \"remaining\":\"6\",\n" +
" \"salePrice\":\"7\",\n" +
" \"suggestMarketPrice\":\"2\"\n" +
" },\n" +
" \"guigeId\":\"31\",\n" +
" \"id\":\"165\",\n" +
" \"attributeValue\":\"黑色\"\n" +
" }\n" +
" ]");
map.put("expressPrice","0");
map.put("saasMallVTypeList","[]");
map.put("attributes","[\n" +
" {\n" +
" \"id\":\"161\",\n" +
" \"skuInfo\":{\n" +
"\n" +
" },\n" +
" \"specId\":\"30\",\n" +
" \"children\":[\n" +
" {\n" +
" \"id\":\"164\",\n" +
" \"imgUrl\":null,\n" +
" \"skuInfo\":{\n" +
" \"remaining\":\"1\",\n" +
" \"salePrice\":\"2\",\n" +
" \"suggestMarketPrice\":\"9\",\n" +
" \"facePrice\":\"11\"\n" +
" },\n" +
" \"specId\":\"31\",\n" +
" \"children\":null\n" +
" },\n" +
" {\n" +
" \"id\":\"165\",\n" +
" \"imgUrl\":null,\n" +
" \"skuInfo\":{\n" +
" \"remaining\":\"2\",\n" +
" \"salePrice\":\"3\",\n" +
" \"suggestMarketPrice\":\"19.99\",\n" +
" \"facePrice\":\"\"\n" +
" },\n" +
" \"specId\":\"31\",\n" +
" \"children\":null\n" +
" }\n" +
" ]\n" +
" },\n" +
" {\n" +
" \"id\":\"162\",\n" +
" \"skuInfo\":{\n" +
"\n" +
" },\n" +
" \"specId\":\"30\",\n" +
" \"children\":[\n" +
" {\n" +
" \"id\":\"164\",\n" +
" \"imgUrl\":null,\n" +
" \"skuInfo\":{\n" +
" \"remaining\":\"3\",\n" +
" \"salePrice\":\"4\",\n" +
" \"suggestMarketPrice\":\"22\"\n" +
" },\n" +
" \"specId\":\"31\",\n" +
" \"children\":null\n" +
" },\n" +
" {\n" +
" \"id\":\"165\",\n" +
" \"imgUrl\":null,\n" +
" \"skuInfo\":{\n" +
" \"remaining\":\"4\",\n" +
" \"salePrice\":\"5\",\n" +
" \"suggestMarketPrice\":\"0.01\",\n" +
" \"facePrice\":\"12\"\n" +
" },\n" +
" \"specId\":\"31\",\n" +
" \"children\":null\n" +
" }\n" +
" ]\n" +
" },\n" +
" {\n" +
" \"id\":\"163\",\n" +
" \"skuInfo\":{\n" +
"\n" +
" },\n" +
" \"specId\":\"30\",\n" +
" \"children\":[\n" +
" {\n" +
" \"id\":\"164\",\n" +
" \"imgUrl\":null,\n" +
" \"skuInfo\":{\n" +
" \"remaining\":\"5\",\n" +
" \"salePrice\":\"6\",\n" +
" \"suggestMarketPrice\":\"0.02\",\n" +
" \"facePrice\":\"21\"\n" +
" },\n" +
" \"specId\":\"31\",\n" +
" \"children\":null\n" +
" },\n" +
" {\n" +
" \"id\":\"165\",\n" +
" \"imgUrl\":null,\n" +
" \"skuInfo\":{\n" +
" \"remaining\":\"6\",\n" +
" \"salePrice\":\"7\",\n" +
" \"suggestMarketPrice\":\"2\"\n" +
" },\n" +
" \"specId\":\"31\",\n" +
" \"children\":null\n" +
" }\n" +
" ]\n" +
" }\n" +
" ]");
//json 格式转成form表单 //json 格式转成form表单
JSONObject jsonParam = JSONObject.parseObject(JSON.toJSONString(map)); JSONObject jsonParam = JSONObject.parseObject(JSON.toJSONString(map));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment