Commit b8230480 authored by 龚小红's avatar 龚小红

增加1对多销售拆分

parent 9cda18f7
...@@ -143,7 +143,7 @@ public class Work implements Authorization { ...@@ -143,7 +143,7 @@ public class Work implements Authorization {
public void 工作台_菜单权限列表(){ public void 工作台_菜单权限列表(){
Response response = network.getResponse(BasicConfig.WORK_menu_list); Response response = network.getResponse(BasicConfig.WORK_menu_list);
int size = response.jsonPath().getInt("data.menuList.size()"); int size = response.jsonPath().getInt("data.menuList.size()");
Assert.assertEquals(size,1,network.message(BasicConfig.WORK_notifyList,"菜单列表数量错误",response.body().asString())); Assert.assertEquals(size,2,network.message(BasicConfig.WORK_notifyList,"菜单列表数量错误",response.body().asString()));
} }
@Test(description = "客户状态分类_数量总览",priority = 10) @Test(description = "客户状态分类_数量总览",priority = 10)
...@@ -1306,6 +1306,7 @@ public class Work implements Authorization { ...@@ -1306,6 +1306,7 @@ public class Work implements Authorization {
params.put("pickTakeFlag",1); params.put("pickTakeFlag",1);
params.put("custNum",10); params.put("custNum",10);
params.put("pickTakeAddress","杭州数字娱乐大厦"); params.put("pickTakeAddress","杭州数字娱乐大厦");
params.put("receiveAndSendOffTime",time-3600000);
}else{ //0表示未约到 }else{ //0表示未约到
params.put("nextContactTime",time); params.put("nextContactTime",time);
} }
...@@ -1389,6 +1390,7 @@ public class Work implements Authorization { ...@@ -1389,6 +1390,7 @@ public class Work implements Authorization {
//获取约面日历列表 //获取约面日历列表
public static void getCalendarlist(long calendarTime,int inviteStatus,String custName,String inviterName){ public static void getCalendarlist(long calendarTime,int inviteStatus,String custName,String inviterName){
sleep(1000); sleep(1000);
int flag= 0 ;
HashMap<String,Object> params = new HashMap<>(); HashMap<String,Object> params = new HashMap<>();
SimpleDateFormat sdt = new SimpleDateFormat("yyyy-MM-dd"); SimpleDateFormat sdt = new SimpleDateFormat("yyyy-MM-dd");
params.put("calendarTime", sdt.format(now)); params.put("calendarTime", sdt.format(now));
...@@ -1398,6 +1400,7 @@ public class Work implements Authorization { ...@@ -1398,6 +1400,7 @@ public class Work implements Authorization {
if(day.calendarTime == calendarTime){ if(day.calendarTime == calendarTime){
for(invitationRecord record:day.invitationInfo) { for(invitationRecord record:day.invitationInfo) {
if(record.custName != null && record.custName.equals(custName)){ if(record.custName != null && record.custName.equals(custName)){
flag=1;
recordItem = record; recordItem = record;
Assert.assertEquals(record.inviteStatus, inviteStatus ,network.message(params,BasicConfig.WORK_calendar_list,"约面状态回显非"+inviteStatus,response.body().asString())); Assert.assertEquals(record.inviteStatus, inviteStatus ,network.message(params,BasicConfig.WORK_calendar_list,"约面状态回显非"+inviteStatus,response.body().asString()));
Assert.assertEquals(record.inviterName, inviterName ,network.message(params,BasicConfig.WORK_calendar_list,"邀约人非【"+inviterName+"】",response.body().asString())); Assert.assertEquals(record.inviterName, inviterName ,network.message(params,BasicConfig.WORK_calendar_list,"邀约人非【"+inviterName+"】",response.body().asString()));
...@@ -1407,6 +1410,10 @@ public class Work implements Authorization { ...@@ -1407,6 +1410,10 @@ public class Work implements Authorization {
break; break;
} }
} }
if(flag == 0){
Assert.fail("未找到相应的约面记录");
}
} }
//获取销售系数 //获取销售系数
......
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