Commit 9f9003d1 authored by 龚小红's avatar 龚小红

Merge branch 'Feature/seller_plan' into 'master'

增加促单状态接口

See merge request !56
parents d69358ed 0112f8ff
...@@ -1253,6 +1253,7 @@ public class Work implements Authorization { ...@@ -1253,6 +1253,7 @@ public class Work implements Authorization {
Assert.assertEquals(custStar,1,network.message(params,BasicConfig.WORK_header,"客户的专家评价未更新",response.body().asString())); Assert.assertEquals(custStar,1,network.message(params,BasicConfig.WORK_header,"客户的专家评价未更新",response.body().asString()));
} }
@Test(description = "编辑客户专家评价",priority = 92) @Test(description = "编辑客户专家评价",priority = 92)
public void 编辑客户专家评价(){ public void 编辑客户专家评价(){
assignSeller(custId,EXPERT_ID,true,3); assignSeller(custId,EXPERT_ID,true,3);
...@@ -1287,6 +1288,37 @@ public class Work implements Authorization { ...@@ -1287,6 +1288,37 @@ public class Work implements Authorization {
Assert.assertEquals(bookingStatus,0,network.message(BasicConfig.PHONE_getReservationList,"预约状态错误:非待参观",response.body().asString())); Assert.assertEquals(bookingStatus,0,network.message(BasicConfig.PHONE_getReservationList,"预约状态错误:非待参观",response.body().asString()));
} }
@Test(description = "标记和取消促单",priority = 94)
public void 标记和取消促单(){
otoLeaderAuth();
HashMap<String,Object> params = new HashMap<>();
params.put("custId", custId);
params.put("promotionType", 1);
Response response = network.getResponse(params,BasicConfig.WORK_getFollowInfo);
boolean data = response.jsonPath().getBoolean("data");
Assert.assertTrue(data,network.message(params,BasicConfig.WORK_getFollowInfo,"标记促单成功",response.body().asString()));
//查看客户的促单状态
params.put("type", 2);
response = network.getResponse(params,BasicConfig.WORK_header);
int promotionType= response.jsonPath().getInt("data.promotionType");
Assert.assertEquals(promotionType,1,network.message(params,BasicConfig.WORK_header,"客户的促单状态错误",response.body().asString()));
params.put("promotionType", 0);
response = network.getResponse(params,BasicConfig.WORK_getFollowInfo);
data = response.jsonPath().getBoolean("data");
Assert.assertTrue(data,network.message(params,BasicConfig.WORK_getFollowInfo,"取消促单成功",response.body().asString()));
//查看客户的促单状态
params.put("type", 2);
response = network.getResponse(params,BasicConfig.WORK_header);
promotionType= response.jsonPath().getInt("data.promotionType");
Assert.assertEquals(promotionType,0,network.message(params,BasicConfig.WORK_header,"客户的促单状态错误",response.body().asString()));
}
@Test(description = "关闭见面场景状态",priority = 97) @Test(description = "关闭见面场景状态",priority = 97)
public void 关闭见面场景状态(){ public void 关闭见面场景状态(){
HashMap<String,Object> params = new HashMap<>(); HashMap<String,Object> params = new HashMap<>();
...@@ -1705,6 +1737,7 @@ public class Work implements Authorization { ...@@ -1705,6 +1737,7 @@ public class Work implements Authorization {
Assert.assertEquals(size,1,network.message(params,BasicConfig.WORK_getFollowInfo,"客户的跟进角色错误",response.body().asString())); Assert.assertEquals(size,1,network.message(params,BasicConfig.WORK_getFollowInfo,"客户的跟进角色错误",response.body().asString()));
} }
@Test(description = "销售查看个人工作计划",priority = 119) @Test(description = "销售查看个人工作计划",priority = 119)
public void 销售查看个人工作计划(){ public void 销售查看个人工作计划(){
otoTakerAuth(); otoTakerAuth();
......
...@@ -231,6 +231,7 @@ public class BasicConfig { ...@@ -231,6 +231,7 @@ public class BasicConfig {
public static final String WORK_getPlanList = WORK_HOST + "/kjy/oto/manager/customer/getPlanList"; public static final String WORK_getPlanList = WORK_HOST + "/kjy/oto/manager/customer/getPlanList";
public static final String WORK_callSubmit = WORK_HOST + "/kjy/oto/manager/customer/call/cust/info/submit"; public static final String WORK_callSubmit = WORK_HOST + "/kjy/oto/manager/customer/call/cust/info/submit";
public static final String WORK_getSceneTypes= WORK_HOST + "/kjy/oto/manager/custconf/getSceneTypes"; public static final String WORK_getSceneTypes= WORK_HOST + "/kjy/oto/manager/custconf/getSceneTypes";
public static final String WORK_promotionUpdate= WORK_HOST + "/kjy/oto/manager/customer/promotion/update";
//*************************客集集营销平台****************************** //*************************客集集营销平台******************************
public static final String PHONE_bindWxUser = HOST + "/kjy/oto/interview/bindWxUser"; public static final String PHONE_bindWxUser = HOST + "/kjy/oto/interview/bindWxUser";
......
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