# 多采商城登录信息
"username": "BJ0621"
"password": "Aa123456"

"username3": "GL1000086"
"password3": "Aa123456"

#后台运营管理系统登录信息(子站点上海医疗器械有限公司)
"username1": "Admin00111"
"password1": "Aa123456"

#后台运营管理系统登录信息(子站点国联)
"username2": "Admin00102"
"password2": "Aa123456"

"username_be": "admin2"
"password_be": "@Aa123456"

#后台管理系统headers
json_headers: {
  "Content-Type": "application/json",
  "Cmdc_access_token": "%s"
}

#文件上传headers
json_headers_file: {
  "Cmdc_access_token": "%s"
}

json_headers_file_1: {
  "Cmdc_access_token": "%s",
  "Sourcetype": "mall"
}

#多采商城headers
json_headers1: {
  "Cmdc_access_token": "%s",
  "Sourcetype": "mall"
}

#测试场景一：获取上报植入列表
"url1": "/order/public/queryHospitalBillPage"
"payload1": {"companyCode":null,"customerCode":null,"customerName":null,"soCode":null,"demandCode":null,"demandParentCode":null,"productLineCode":null,"productCode":null,"productName":null,"optionStr":null,"manufacturer":null,"materialCode":null,"reportedSign":null,"isReportedEnd":null,"pageStart":1,"pageSize":10,"total":null}
#预期结果
checkDict1: {"success":true,"code":"200","message":"OK"}

#测试场景二：获取医院账单详情
"url2": "/order/back/getHospitalBillDetail"
"payload2": {"soCode":"%s"}
#预期结果
checkDict2: {"soCode":"%s"}

#测试场景三：植入台账导出功能验证
"url3": "/order/back/exportHospitalBillDetail"
"payload3": {"companyCode":null,"customerCode":null,"customerName":null,"soCode":null,"demandCode":"%s","demandParentCode":null,"productLineCode":null,"productCode":null,"productName":null,"optionStr":null,"manufacturer":null,"materialCode":null,"reportedSign":null,"isReportedEnd":null,"pageStart":1,"pageSize":10,"total":null}
#预期结果
checkDict3: {"demandCode":"%s"}

#测试场景四：获取经销商关联医院管理列表
"url4": "/order/public/hospitalCustomer/list"
"payload4": {"pageStart":1,"pageSize":10,"total":null}
#预期结果
checkDict4: {"success":true,"code":"200","message":"OK"}

#测试场景五：列表查询条件验证_经销商关联医院管理列表
"url5": "/order/public/hospitalCustomer/list"
"payload5": {"customerCode":"%s","customerName":"%s","hospitalCode":"%s","hospitalName":"%s","pageStart":null,"pageSize":null,"total":null}
#预期结果
checkDict5: {"customerCode":"%s"}


#测试场景六：经销商关联医院导出功能验证
"url6": "/order/public/hospitalCustomer/export"
"payload6": {}
#预期结果
checkDict6: {"total":"%s"}

#测试场景七：获取经销商列表
"url7": "/user/querySubCustomerPage"
"payload7": {"pageStart":1,"pageSize":10,"total":null,"companyId":"7"}
#预期结果
checkDict7: {"success":true,"code":"200","message":"OK"}


#测试场景八：列表查询条件验证_经销商列表
"url8": "/user/querySubCustomerPage"
"payload8": {"pageStart":1,"pageSize":10,"total":null,"companyId":"7","telephone":"%s","userName":"%s","userNo":"%s","customerCompanyName":"%s"}
#预期结果
checkDict8: {"customerCompanyName":"%s"}


#测试场景九：获取关联医院列表
"url9": "/order/public/hospitalArchive/list"
"payload9": {"pageStart":1,"pageSize":10,"total":null}
#预期结果
checkDict9: {"success":true,"code":"200","message":"OK"}


#测试场景十：列表查询条件验证_关联医院列表
"url10": "/order/public/hospitalArchive/list"
"payload10": {"pageStart":1,"pageSize":10,"total":null,"hospitalCode":"%s","hospitalName":"%s"}
#预期结果
checkDict10: {"hospitalCode":"%s"}



#测试场景十一：列表查询条件验证_关联医院列表
"url11": "/order/public/hospitalArchive/list"
"payload11": {"pageStart":1,"pageSize":10,"total":null,"hospitalCode":"%s","hospitalName":"%s"}
#预期结果
checkDict11: {"hospitalCode":"%s"}

#测试场景十二：经销商关联医院新增功能验证
"url12": "/order/public/hospitalCustomer/add"
"payload12": {"customerName":"中国船舶集团物资有限公司","customerCode":"1228325","hospitalName":"安贞医院","hospitalCode":"0010227","companyCode":"00102"}
#预期结果
checkDict12: {"customerCode": "1228325"}

#测试场景十三：经销商关联医院信息编辑功能验证
"url13": "/order/public/hospitalCustomer/edit"
#预期结果
checkDict13: {"success":true,"code":"200","message":"OK","data":null,"freshToken":null}
# 获取指定医院
"url13_1": "/order/public/hospitalCustomer/list?pageNum=1&customerCode=1228325&hospitalCode=0010227&pageStart=1&pageSize=10&total="

#测试场景十四：经销商关联医院批量新增功能验证
"url14": "/order/public/hospitalCustomer/importExcel"
#预期结果
checkDict14: {"success":true,"code":"200","message":"OK","data":null,"freshToken":null}

#测试场景十五：导入日志查看验证
"url15": "/order/public/excelLog/list?sheetName=hospitalCustomer&pageStart=1&pageSize=10&total="
#预期结果
checkDict15: {"status":2}

#测试场景十六：经销商关联医院删除功能验证
"url16": "/order/public/hospitalCustomer/delete"
"payload16": {"ids":"%s"}
#预期结果
checkDict16: {"success":true,"code":"200","message":"OK","data":null,"freshToken":null}
# 获取医院信息
"url16_1": "/order/public/hospitalCustomer/list?customerCode=1228325&pageStart=1&pageSize=10&total="


#测试场景十七：医院档案信息批量导出功能验证
"url17": "/order/public/hospitalArchive/export"
"payload17": {"hospitalCode":"%s"}
#预期结果
checkDict17: {"hospitalCode":"%s"}

#测试场景十八：新增医院档案功能验证
"url18": "/order/public/hospitalArchive/add"
"payload18": {"hospitalName":"测试添加医院档案功能","provinceId":464,"province":"辽宁省","cityId":479,"city":"大连市","companyCode":"00102"}
#预期结果
checkDict18: {"success":true,"code":"200","message":"OK","data":null,"freshToken":null}


#测试场景十九：医院档案信息编辑功能验证
"url19": "/order/public/hospitalArchive/edit"
#预期结果
checkDict19: {"success":true,"code":"200","message":"OK","data":null,"freshToken":null}
#获取指定的医院档案
"url19_1": "/order/public/hospitalArchive/list"
"payload19_1": {"pageStart":1,"pageSize":10,"total":null,"hospitalName":"测试添加医院档案功能"}


#测试场景二十：医院档案信息删除功能验证
"url20": "/order/public/hospitalArchive/delete"
"payload20": {"ids":"%s"}
#预期结果
checkDict20: {"success":true,"code":"200","message":"OK","data":null,"freshToken":null}


#测试场景二十一：获取宽限期管理列表
"url21": "/order/public/queryHospitalGracePage"
"payload21": {"companyCode":null,"productLineCode":null,"pageStart":1,"pageSize":10,"total":null}
#预期结果
checkDict21: {"success":true,"code":"200","message":"OK"}

#测试场景二十二：列表查询条件验证_宽限期管理
"url22": "/order/public/queryHospitalGracePage"
"payload22": {"companyCode":null,"productLineCode":"%s","pageStart":1,"pageSize":10,"total":null}
#预期结果
checkDict22: {"productLineCode":"%s"}


#测试场景二十三：宽限期管理批量导出功能验证
"url23": "/order/public/exportHospitalGraceList"
"payload23": {"companyCode":null,"productLineCode":"%s","pageStart":1,"pageSize":10,"total":null}
#预期结果
checkDict23: {"productLineCode":"%s"}


#测试场景二十四：医院档案信息批量新增功能验证
"url24": "/order/public/hospitalArchive/importExcel"
#预期结果
checkDict24: {"success":true,"code":"200","message":"OK","data":null,"freshToken":null}


#测试场景二十五：医院档案批量导入日志查询验证
"url25": "/order/public/excelLog/list?sheetName=hospitalArchive&pageStart=1&pageSize=10&total="

#预期结果
checkDict25: {"status": 2}


#测试场景二十六：宽限期新增功能验证
"url26": "/order/hospitalGrace/insertHospitalGrace"
"payload26": {"productLineName":"%s","productLineCode":"%s","graceMonth":"%s","graceStage":"%s"}
#预期结果
checkDict26: {"success":true,"code":"200","message":"OK","data":"success","freshToken":null}
#获取产品线信息
"url26_1": "/product/public/queryProductLineNameByAll?filialeCode=00102"

#测试场景二十七：宽限期编辑更新功能验证
"url27": "/order/hospitalGrace/updateHospitalGrace"
"payload27": {"id":"%s","productLineName":"%s","productLineCode":"%s","graceMonth":"%s","graceStage":"%s"}
#预期结果
checkDict27: {"success":true,"code":"200","message":"OK","data":"success","freshToken":null}

#测试场景二十八：宽限期删除功能验证
"url28": "/order/hospitalGrace/batchDelete"
#预期结果
checkDict28: {"success":true,"code":"200","message":"OK","data":"success","freshToken":null}

#测试场景二十九：宽限期批量新增功能验证
"url29": "/order/back/batchImportHospitalGrace"
#预期结果
checkDict29: {"success":true,"code":"200","message":"OK"}

#测试场景三十：宽限期批量新增导入日志查询
"url30": "/order/public//excelLog/list?sheetName=hospitalGrace&pageStart=1&pageSize=10&total="
#预期结果
checkDict30: {"status": 2}

#测试场景三十一：获取商品植入清单列表
"url31": "/order/back/queryBillDetail"
"payload31": {"soCode":"%s","productName":null,"productCode":null,"manufacturer":null,"optionStr":null,"ehd200":null,"reportStatus":null,"hospitalName":null,"uniqueCode":null,"demandCode":"%s"}
#预期结果
checkDict31: {"success":true,"code":"200","message":"OK"}

#测试场景三十二：列表查询条件验证_商品植入清单列表
"url32": "/order/back/queryBillDetail"
"payload32": {"soCode":"%s","productName":"%s","productCode":"%s","manufacturer":"%s","optionStr":"%s","ehd200":"%s","reportStatus":"%s","hospitalName":"%s","uniqueCode":"%s","demandCode":"%s"}
#预期结果
checkDict32: {"productCode":"%s"}

#测试场景三十三：参数必填性校验_经销商关联医院新增
"url33": "/order/public/hospitalCustomer/add"
"payload33": {"hospitalName":"","customerName":"","customerCode":"","hospitalCode":"","companyCode":"00102"}
#预期结果
checkDict33: {"success":false,"code":"ERROR500","message":"客户编码为空","data":null,"freshToken":null}

#测试场景三十四：无效客户_经销商关联医院新增
"url34": "/order/public/hospitalCustomer/add"
"payload34": {"hospitalName":"","customerName":"","customerCode":"1234124124","hospitalCode":"41234124","companyCode":"00102"}
#预期结果
checkDict34: {"success":false,"code":"ERROR500","message":"找不到该用户","data":null,"freshToken":null}

#测试场景三十五：医院信息无效_经销商关联医院新增
"url35": "/order/public/hospitalCustomer/add"
"payload35": {"hospitalName":"","customerName":"","customerCode":"%s","hospitalCode":"41234124","companyCode":"00102"}
#预期结果
checkDict35: {"success":false,"code":"ERROR500","message":"找不到该医院","data":null,"freshToken":null}


#测试场景三十六：重复添加_经销商关联医院新增
"url36": "/order/public/hospitalCustomer/add"
"payload36": {"hospitalName":"%s","customerName":"%s","customerCode":"%s","hospitalCode":"%s","companyCode":"00102"}
#预期结果
checkDict36: {"success":false,"code":"ERROR500","message":"请勿重复添加","data":null,"freshToken":null}

#测试场景三十七：参数必填性校验_医院档案新增
"url37": "/order/public/hospitalArchive/add"
"payload37": {"hospitalName":"","provinceId":37,"province":"河北省","cityId":61,"city":"唐山市","companyCode":"00102"}
#预期结果
checkDict37: {"success":false,"code":"ERROR500","message":"医院名称不能为空","data":null,"freshToken":null}

#测试场景三十八：参数必填性校验2_医院档案新增
"url38": "/order/public/hospitalArchive/add"
"payload38": {"hospitalName":"234234242","provinceId":"","province":"","cityId":"","city":"","companyCode":"00102"}
#预期结果
checkDict38: {"success":false,"code":"ERROR500","message":"省份不能为空","data":null,"freshToken":null}

#测试场景三十九：医院已存在_医院档案新增
"url39": "/order/public/hospitalArchive/add"
"payload39": {"companyCode":"%s","hospitalCode":"%s","hospitalName":"%s","province":"%s","city":"%s","cityId":"%s","provinceId":"%s"}
#预期结果
checkDict39: {"success":false,"code":"ERROR500","message":"当前医院名称已经存在","data":null,"freshToken":null}

#测试场景四十：重复添加_经销商宽限期添加
"url40": "/order/hospitalGrace/insertHospitalGrace"
"payload40": {"productLineName":"%s","productLineCode":"%s","graceMonth":"%s","graceStage":"%s"}
#预期结果
checkDict40: {"success":false,"code":"5000","message":"与库中数据重复","data":null,"freshToken":null}

















