Commit 750fbc44 authored by 龚小红's avatar 龚小红

增加1对多销售拆分

parent 66c994ed
...@@ -755,15 +755,18 @@ public class Phone implements Authorization { ...@@ -755,15 +755,18 @@ public class Phone implements Authorization {
int giveProspectusFlag = response.jsonPath().getInt("data.giveProspectusFlag"); int giveProspectusFlag = response.jsonPath().getInt("data.giveProspectusFlag");
int commitPlanFlag = response.jsonPath().getInt("data.commitPlanFlag"); int commitPlanFlag = response.jsonPath().getInt("data.commitPlanFlag");
String expertName = response.jsonPath().getString("data.expertName"); String expertName = response.jsonPath().getString("data.expertName");
int size = response.jsonPath().getInt("data.unusualTypes.size()");
String unusualExplain = response.jsonPath().getString("data.unusualExplain"); String unusualExplain = response.jsonPath().getString("data.unusualExplain");
Assert.assertEquals(followWeight,weight,network.message(params,BasicConfig.PHONE_feedbackDetail,"关注度显示错误",response.body().asString())); Assert.assertEquals(followWeight,weight,network.message(params,BasicConfig.PHONE_feedbackDetail,"关注度显示错误",response.body().asString()));
Assert.assertEquals(giveProspectusFlag,giveProspectus,network.message(params,BasicConfig.PHONE_feedbackDetail,"关注度显示错误",response.body().asString())); Assert.assertEquals(giveProspectusFlag,giveProspectus,network.message(params,BasicConfig.PHONE_feedbackDetail,"关注度显示错误",response.body().asString()));
Assert.assertEquals(commitPlanFlag,commitPlan,network.message(params,BasicConfig.PHONE_feedbackDetail,"关注度显示错误",response.body().asString())); Assert.assertEquals(commitPlanFlag,commitPlan,network.message(params,BasicConfig.PHONE_feedbackDetail,"关注度显示错误",response.body().asString()));
Assert.assertEquals(expertName,expert,network.message(params,BasicConfig.PHONE_feedbackDetail,"关注度显示错误",response.body().asString())); Assert.assertEquals(expertName,expert,network.message(params,BasicConfig.PHONE_feedbackDetail,"关注度显示错误",response.body().asString()));
Assert.assertEquals(unusualExplain, explain, network.message(params, BasicConfig.PHONE_feedbackDetail, "异常情况说明显示错误", response.body().asString()));;
if(unusualTypes>0) {
int size = response.jsonPath().getInt("data.unusualTypes.size()");
Assert.assertEquals(size,unusualTypes,network.message(params,BasicConfig.PHONE_feedbackDetail,"面访异常类型显示错误",response.body().asString())); Assert.assertEquals(size,unusualTypes,network.message(params,BasicConfig.PHONE_feedbackDetail,"面访异常类型显示错误",response.body().asString()));
if(size>0) { }else{
Assert.assertEquals(unusualExplain, explain, network.message(params, BasicConfig.PHONE_feedbackDetail, "异常情况说明显示错误", response.body().asString())); Object size = response.jsonPath().getJsonObject("data.unusualTypes");
Assert.assertNull(size,network.message(params,BasicConfig.PHONE_feedbackDetail,"面访异常类型显示错误",response.body().asString()));
} }
} }
} }
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