Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
test-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
马博
test-platform
Commits
1c02dbc4
Commit
1c02dbc4
authored
Dec 04, 2018
by
wangxiaoshuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wxs
parent
711f0b44
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
268 additions
and
28 deletions
+268
-28
DuibadoUpdateObject.java
src/test/java/http/service/goods/DuibadoUpdateObject.java
+268
-28
No files found.
src/test/java/http/service/goods/DuibadoUpdateObject.java
View file @
1c02dbc4
...
...
@@ -56,36 +56,276 @@ public class DuibadoUpdateObject {
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"
;
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
""
,
""
);
map
.
put
(
""
,
""
);
map
.
put
(
""
,
""
);
map
.
put
(
""
,
""
);
map
.
put
(
""
,
""
);
map
.
put
(
""
,
""
);
map
.
put
(
""
,
""
);
map
.
put
(
""
,
""
);
map
.
put
(
""
,
""
);
map
.
put
(
""
,
""
);
map
.
put
(
""
,
""
);
map
.
put
(
""
,
""
);
map
.
put
(
""
,
""
);
map
.
put
(
""
,
""
);
map
.
put
(
""
,
""
);
map
.
put
(
""
,
""
);
map
.
put
(
""
,
""
);
map
.
put
(
""
,
""
);
map
.
put
(
""
,
""
);
map
.
put
(
""
,
""
);
map
.
put
(
""
,
""
);
map
.
put
(
""
,
""
);
map
.
put
(
""
,
""
);
map
.
put
(
""
,
""
);
map
.
put
(
""
,
""
);
map
.
put
(
""
,
""
);
map
.
put
(
"attributes"
,
"[{id: \"161\", skuInfo: {}, specId: \"30\",…}, {id: \"162\", skuInfo: {}, specId: \"30\",…},…]"
);
map
.
put
(
"type"
,
"object"
);
map
.
put
(
"multiImage"
,
"//yun.dui88.com/images/201812/pxstomsmtn.png"
);
map
.
put
(
"preSaasMallVTypeList"
,
"[]"
);
map
.
put
(
"expressType"
,
"unity"
);
map
.
put
(
"directRecharge"
,
"0"
);
map
.
put
(
"multiSku"
,
"true"
);
map
.
put
(
"attrsCopy"
,
"[\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
(
"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表单
JSONObject
jsonParam
=
JSONObject
.
parseObject
(
JSON
.
toJSONString
(
map
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment