Commit 5603c832 authored by 龚小红's avatar 龚小红

增加促单状态接口

parent 0112f8ff
...@@ -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);
......
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