Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oto
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
龚小红
oto
Commits
5603c832
Commit
5603c832
authored
Dec 22, 2022
by
龚小红
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加促单状态接口
parent
0112f8ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Work.java
src/test/java/com/oto/cases/otoseller/Work.java
+4
-4
No files found.
src/test/java/com/oto/cases/otoseller/Work.java
View file @
5603c832
...
@@ -1295,9 +1295,9 @@ public class Work implements Authorization {
...
@@ -1295,9 +1295,9 @@ public class Work implements Authorization {
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"custId"
,
custId
);
params
.
put
(
"custId"
,
custId
);
params
.
put
(
"promotionType"
,
1
);
params
.
put
(
"promotionType"
,
1
);
Response
response
=
network
.
getResponse
(
params
,
BasicConfig
.
WORK_getFollowInfo
);
Response
response
=
network
.
postResponse
(
params
,
BasicConfig
.
WORK_promotionUpdate
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
boolean
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
WORK_
getFollowInfo
,
"标记促单成功"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
WORK_
promotionUpdate
,
"标记促单成功"
,
response
.
body
().
asString
()));
//查看客户的促单状态
//查看客户的促单状态
params
.
put
(
"type"
,
2
);
params
.
put
(
"type"
,
2
);
...
@@ -1307,9 +1307,9 @@ public class Work implements Authorization {
...
@@ -1307,9 +1307,9 @@ public class Work implements Authorization {
params
.
put
(
"promotionType"
,
0
);
params
.
put
(
"promotionType"
,
0
);
response
=
network
.
getResponse
(
params
,
BasicConfig
.
WORK_getFollowInfo
);
response
=
network
.
postResponse
(
params
,
BasicConfig
.
WORK_promotionUpdate
);
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
data
=
response
.
jsonPath
().
getBoolean
(
"data"
);
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
WORK_
getFollowInfo
,
"取消促单成功"
,
response
.
body
().
asString
()));
Assert
.
assertTrue
(
data
,
network
.
message
(
params
,
BasicConfig
.
WORK_
promotionUpdate
,
"取消促单成功"
,
response
.
body
().
asString
()));
//查看客户的促单状态
//查看客户的促单状态
params
.
put
(
"type"
,
2
);
params
.
put
(
"type"
,
2
);
...
...
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