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

#后台运营管理系统登录信息(子站)
"username1": "Admin00111"
"password1": "Aa123456"

#后台运营管理系统登录信息(总站)
"username2": "Admin"
"password2": "Aa123456"

json_headers: {
  "Content-Type": "application/json",
  "Cmdc_access_token": "%s"
}



#测试场景：获取用户对应的购物车列表信息
json_headers1: {
  "Cmdc_access_token": "%s",
  "Sourcetype": "mall"
}
#站点导航北京公司站点信息 post
"url1": "/user/public/visitInfo"
"payload1": {"module":"北京公司#add#2"}
#预期结果
checkDict1: {"success":true,"code":"200","message":"OK","data":null,"freshToken":null}


#站点导航国联公司站点信息 post
"url2": "/user/public/visitInfo"
"payload2": {"module":"国联公司#add#2"}
#预期结果
checkDict2: {"success":true,"code":"200","message":"OK","data":null,"freshToken":null}

#站点导航通过公司ID获取域名 get
"url3": "/user/public/getDomainOpenByComapnyId"
"payload3": companyId=3
#预期结果
checkDict3: {"success":true,"code":"200","message":"OK","data":{"id":502,"userId":2,"companyId":3,"visitor":2,"noClient":1,"companyCode":"00103","conSign":null,"isSiteTips":0},"freshToken":null}


#商品搜索按厂商搜索
"url4": "/product/mall/queryPcProductInfoByPage"
"payload4": {"searchName":"北京谊安医疗系统股份有限公司"}
#预期结果
checkDict4: {"success":true,"code":"200","message":"OK"}



#商品搜索按规格搜索
"url5": "/product/public/queryPcProductInfoByPageAndPublic"
"payload5": {"searchName":"Shangrila510S"}
#预期结果
checkDict5: {"success":true,"code":"200","message":"OK","data":{"total":1,"firstcategory":["医用设备"],"countFacets":[{"key":"secondcategory","items":[{"itemKey":"呼麻急救","itemCount":1}]},{"key":"firstcategory","items":[{"itemKey":"医用设备","itemCount":1}]},{"key":"thirdcategory","items":[{"itemKey":"呼吸设备","itemCount":1}]},{"key":"manufacturer","items":[{"itemKey":"北京谊安医疗系统股份有限公司","itemCount":1}]}],"pageSize":10,"thirdcategory":["呼吸设备"],"list":[{"productid":23363,"productname":"呼吸机","productcode":"10231310","defaultimageurl":"https://pro-cmdc.oss-cn-beijing.aliyuncs.com/productFile/2021/11/10/5693a99f-8536-4058-815a-ab718b85bad7.png","referenceprice":300000.0,"filialename":"","filialecode":"00103","iscontrolsales":0,"specifications":"Shangrila510S","firstcategory":"医用设备","firstcategorytext":null,"secondcategory":"呼麻急救","secondcategorytext":null,"thirdcategory":"呼吸设备","thirdcategorytext":null,"taglist":"","manufacturer":"北京谊安医疗系统股份有限公司","manufacturercode":"7001017","uploadtime":null,"salesvolume":null,"collectionId":null,"agreementPriceId":null,"tagList":[],"companylist":"103","controlsales":null,"issee":0,"minArea":null,"hidePrice":false,"installedDateMust":0,"freseniushide":false,"ippMiniPurchaseNum":null,"ippMultipleSign":null,"ippPurchaseMultiple":null,"ippStatus":null,"loginSign":1,"measuringUnit":"台","description":"","productNature":"01","productcategories":"02","deliveryDetail":null,"maxPrice":null,"showDemandAuditLineLabel":false,"inquiry":false,"controlBuy":false}],"pageNum":1,"secondcategory":["呼麻急救"],"manufacturer":["北京谊安医疗系统股份有限公司"],"status":"ok"},"freshToken":null}



#商品搜索按名称搜索
"url6": "/product/public/queryPcProductInfoByPageAndPublic"
"payload6": {"searchName":"全数字彩色多普勒超声诊断仪"}
#预期结果
checkDict6: {"success":true,"code":"200","message":"OK","data":{"total":3,"firstcategory":["医学影像"],"countFacets":[{"key":"secondcategory","items":[{"itemKey":"超声诊断设备","itemCount":3}]},{"key":"firstcategory","items":[{"itemKey":"医学影像","itemCount":3}]},{"key":"thirdcategory","items":[{"itemKey":"彩超","itemCount":3}]},{"key":"manufacturer","items":[{"itemKey":"大为医疗(江苏)有限公司","itemCount":2},{"itemKey":"武汉凯进医疗技术有限公司","itemCount":1}]}],"pageSize":10,"thirdcategory":["彩超"],"list":[{"productid":12658,"productname":"全数字彩色多普勒超声诊断仪","productcode":"15404624","defaultimageurl":"https://pro-cmdc.oss-cn-beijing.aliyuncs.com/productFile/2021/11/10/e9bbad3a-8052-4dee-84e5-07833bc5986a.png","referenceprice":61000.0,"filialename":"","filialecode":"00103","iscontrolsales":0,"specifications":"DW-PF580","firstcategory":"医学影像","firstcategorytext":null,"secondcategory":"超声诊断设备","secondcategorytext":null,"thirdcategory":"彩超","thirdcategorytext":null,"taglist":"","manufacturer":"大为医疗(江苏)有限公司","manufacturercode":"7068749","uploadtime":null,"salesvolume":null,"collectionId":null,"agreementPriceId":null,"tagList":[],"companylist":"103","controlsales":null,"issee":0,"minArea":null,"hidePrice":false,"installedDateMust":0,"freseniushide":false,"ippMiniPurchaseNum":null,"ippMultipleSign":null,"ippPurchaseMultiple":null,"ippStatus":null,"loginSign":1,"measuringUnit":"台","description":"","productNature":"01","productcategories":"","deliveryDetail":null,"maxPrice":null,"showDemandAuditLineLabel":false,"inquiry":false,"controlBuy":false},{"productid":12660,"productname":"全数字彩色多普勒超声诊断仪","productcode":"15023368","defaultimageurl":"https://pro-cmdc.oss-cn-beijing.aliyuncs.com/productFile/2021/11/10/2746bbb3-b3ea-4c1f-ae37-f1023a81aea9.png","referenceprice":38000.0,"filialename":"","filialecode":"00103","iscontrolsales":0,"specifications":"DW-PF520","firstcategory":"医学影像","firstcategorytext":null,"secondcategory":"超声诊断设备","secondcategorytext":null,"thirdcategory":"彩超","thirdcategorytext":null,"taglist":"","manufacturer":"大为医疗(江苏)有限公司","manufacturercode":"7068749","uploadtime":null,"salesvolume":null,"collectionId":null,"agreementPriceId":null,"tagList":[],"companylist":"103","controlsales":null,"issee":0,"minArea":null,"hidePrice":false,"installedDateMust":0,"freseniushide":false,"ippMiniPurchaseNum":null,"ippMultipleSign":null,"ippPurchaseMultiple":null,"ippStatus":null,"loginSign":1,"measuringUnit":"台","description":"","productNature":"01","productcategories":"","deliveryDetail":null,"maxPrice":null,"showDemandAuditLineLabel":false,"inquiry":false,"controlBuy":false},{"productid":40490,"productname":"全数字彩色多普勒超声诊断仪","productcode":"14534880","defaultimageurl":"","referenceprice":9999999.99,"filialename":"","filialecode":"00241","iscontrolsales":0,"specifications":"KAI-X10","firstcategory":"医学影像","firstcategorytext":null,"secondcategory":"超声诊断设备","secondcategorytext":null,"thirdcategory":"彩超","thirdcategorytext":null,"taglist":"","manufacturer":"武汉凯进医疗技术有限公司","manufacturercode":"7013583","uploadtime":null,"salesvolume":null,"collectionId":null,"agreementPriceId":null,"tagList":[],"companylist":"241","controlsales":null,"issee":0,"minArea":null,"hidePrice":false,"installedDateMust":0,"freseniushide":false,"ippMiniPurchaseNum":null,"ippMultipleSign":null,"ippPurchaseMultiple":null,"ippStatus":null,"loginSign":1,"measuringUnit":"台","description":"","productNature":"01","productcategories":"02","deliveryDetail":null,"maxPrice":null,"showDemandAuditLineLabel":false,"inquiry":false,"controlBuy":false}],"pageNum":1,"secondcategory":["超声诊断设备"],"manufacturer":["大为医疗(江苏)有限公司","武汉凯进医疗技术有限公司"],"status":"ok"},"freshToken":null}


#站点直通车 post
"url7": "/order/public/getAllThrough"
"payload7": {"pageSize":28,"pageStart":1,"status":2,"hideSgin":1,"closeSign":0}
#预期结果
checkDict7: {"success":true,"code":"200","message":"OK"}



#医用耗材专区 post
"url8": "/user/public/visitInfo"
"payload8": {"module":"医用耗材专区#add#3"}
#预期结果
checkDict8: {"success":true,"code":"200","message":"OK"}


#信息中心所有买家购物车列表 post
"url9": "/product/mall/queryTotalBuyerCartList"
"payload9": {"pageStart":1,"pageSize":50,"pageNumber":1,"productName":"","materialCode":"","manufacturer":"","licenseCode":"","filialeCode":""}
#预期结果
checkDict9: {"success":true,"code":"200","message":"OK"}

#信息中心获取所有公司 get
"url10": "/user/public/getAllCompany"
"payload10":
#预期结果
checkDict10: {"success":true,"code":"200","message":"OK"}

#信息中心查看详情按ID查询 post
"url11": "/cms/mall/notice/queryById"
"payload11": {"noticeId":"5340033"}
#预期结果
checkDict11: {"success":true,"code":"200","message":"操作成功"}

#信息中心查看详情更新状态 post
"url12": "/cms/mall/notice/updateStatus"
"payload12": {"noticeId":"5340032"}
#预期结果
checkDict12: {"success":false,"code":"200","message":"没有可更新数据","data":null,"freshToken":null}












checkDict21: {"success":false,"code":"200","message":"商品添加完毕，本次添加商品【1】条，成功【0】条，失败【1】条：\n第1行，该商品不存在!","data":[],"freshToken":null}

#测试场景二：必填字段缺失
"payload22": {"currentCompanyId":"","buyerCartList":[{"quantity":"1"}],"excelCopySort":0,"companyId":3}
#预期结果
checkDict22: {"success":false,"code":"200","message":"商品添加完毕，本次添加商品【1】条，成功【0】条，失败【1】条：\n第1行，产品编码或物料编码为空!","data":[],"freshToken":null}

#测试场景三：子站点不存在
"payload24": {"currentCompanyId":"","buyerCartList":[{"productCode":"10231310","materialCode":"","quantity":"1"}],"excelCopySort":0,"companyId":"%d"}
#预期结果
checkDict24: {"success":false,"code":"999","message":"找不到该公司的首营信息","data":null,"freshToken":null}

#测试场景四：添加商品成功
"payload23": {"currentCompanyId":"","buyerCartList":[{"productCode":"%s","materialCode":"","quantity":"1"}],"excelCopySort":0,"companyId":"%s"}
#预期结果
checkDict23: {"success":False,"code":"200","message":"商品添加完毕，本次添加商品【1】条，成功【1】条，失败【0】条。"}
