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

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

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

#后台运营管理系统登录信息(总站点)
"username0": "admin"
"password0": "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": "/product/area/queryPage"
"payload1": {"title":"","description":"","disableSign":null,"terminalType":"","startTime":"","endTime":"","pageNumber":1,"pageSize":10,"areaType":1,"companyId":""}
#预期结果
checkDict1: {"success":true,"code":"200","message":"操作成功"}

#测试场景二：列表查询条件验证_专区管理
"url2": "/product/area/queryPage"
"payload2": {"title":"%s","description":"","disableSign":"%s","terminalType":"","startTime":"%s","endTime":"%s","pageNumber":1,"pageSize":10,"areaType":1,"companyId":""}
#预期结果
checkDict2: {"title":"%s"}

#测试场景二：列表查询条件验证_专区管理
"url2": "/product/area/queryPage"
"payload2": {"title":"%s","description":"","disableSign":"%s","terminalType":"","startTime":"%s","endTime":"%s","pageNumber":1,"pageSize":10,"areaType":1,"companyId":""}
#预期结果
checkDict2: {"title":"%s"}

#测试场景三：获取专区信息
"url3": "/product/area/queryById"
"payload3": {"areaId":"%s"}
#预期结果
checkDict3: {"areaId":"%s"}

#测试场景四：专区新增验证
"url4": "/product/area/add"
"payload4": {"title":"专区新增测试","topMapUrl":"https://pro-cmdc.oss-cn-beijing.aliyuncs.com/productFile/2024/03/13/a6445c2f-c53e-4a84-bd93-e1005c6ea8c1.png","description":"专区新增测试","terminalType":0,"areaProductList":[{"materialCodeInput":null,"allMaterialSign":null,"materialCodeExact":null,"specificationsExact":null,"directUpdate":false,"yaPei":false,"ids":null,"auditStatus":null,"productId":1,"productName":"微导管","productCode":"10000923","firstCategoryId":224,"firstCategoryName":"西部","secondCategoryId":225,"secondCategoryName":"自行车","thirdCategoryId":252,"preInvalidStatus":null,"thirdCategoryName":"撒大声地","defaultImageUrl":"https://pro-cmdc.oss-cn-beijing.aliyuncs.com/productFile/2020/12/30/7cf290b7-083e-43da-b42f-d1532165b581.JPG","isExistImage":1,"referencePrice":270,"filialeName":"国药集团联合医疗器械有限公司","filialeCode":"00102","filialeCodeList":null,"brandId":null,"brandName":null,"status":101,"uploadTime":null,"deleteSign":null,"isControlSales":0,"lineCode":null,"lineName":"增加公司级商品字段","specifications":"NC-F865A","productCategories":"01","productNature":"01","productNatureStr":null,"isRelease":1,"riskRank":"003","riskRankStr":null,"specialSort":"0103","specialSortStr":null,"productClassify":"9998","storageCondition":"","storageConditionStr":null,"otherStorageCondition":"","countryOfOrigin":"JP","countryOfOriginStr":null,"materialCode":"","manufacturer":"泰尔茂株式会社(テルモ株式会社)","manufacturerCode":"7000333","newRiskRank":"","newProductClassify":"","newClassifyLevel":null,"newProductClassify2":null,"approvalNumber":"","dosageForm":"","atcCategories":"","serialNumber":"","medicineType":"","measuringUnit":"个","keyWords":"WDG","jdeStatus":"O","commonName":"微导管","isSerialNumberManage":"","applicationDepartment":"","medicalInsuranceCode":"","auxiliaryMeasuringUnit":"EA","procurementMeasuringUnit":"EA","pricingMeasuringUnit":"EA","diagnosticMedicineCategories":"","atcClassify":"","productAuditId":null,"imageUrls":null,"controlSalesFlag":null,"collectionId":null,"groupId":null,"detailImageUrls":null,"tagList":null,"licenseInfos":null,"agreementPrices":null,"licenseInfoId":null,"licenseCode":null,"topMapUrl":null,"pageNum":null,"pageSize":null,"productIds":null,"price":null,"quantity":null,"total":null,"subtotal":null,"customerCode":null,"isSee":0,"isSeeNoBuy":null,"agreementPriceId":null,"imageUrl":null,"companyName":null,"detailUrl":null,"productGroupType":null,"productGroupValue":null,"productLineName":null,"productLineCode":null,"queryStr":null,"regionId":null,"description":"","userNoList":null,"companyId":null,"isFbList":null,"productTabType":null,"auditLevel":null,"auditIdFirst":null,"auditIdSecond":null,"ippMiniPurchaseNum":null,"ippMultipleSign":null,"ippPurchaseMultiple":null,"ippStatus":null,"loginSign":null,"productNo":null,"isAudit":null,"licenseCodeList":null,"licenseTypeDesList":null,"abledTimeList":null,"disabledTimeList":null,"licenseStatusList":null,"type":null,"isGift":1,"licenseListStr":null,"applyCode":null,"siteType":null,"busProductCode":null,"categorySeq":"西部|224,自行车|225,撒大声地|252","frequentPurchaseSign":0,"inventory":null,"taxRate":"","jdeUpdate":"2021-12-14 15:23:49","jdeUpdateStr":"2021-12-14 15:23:49","startTime":null,"endTime":null,"deliveryDetail":null,"deliveryTimeId":null,"medicaCode":null,"classCode":null,"mappinCode":null,"companyCodeList":null,"mustInstallDate":false,"propertyName":null,"propertyVal":null,"propertyNote":null,"sdOutStorage":0,"installedDateMust":null,"showDemandAuditLineLabel":false,"conSign":null,"measuringUnitName":null,"createBy":null,"countryOfOriginName":null,"isSiteTips":null,"inquiry":false,"cxe8CPX":null,"cpdl01":null}],"areaType":1}
#预期结果
checkDict4: {"success":true,"code":"200","message":"操作成功","data":null,"freshToken":null}

#测试场景五：专区编辑更新功能验证
"url5": "/product/area/modify"
"payload5": {"terminalType":"%s","title":"%s","description":"%s","areaProductList":[{"areaId":"%s","productId":"%s","productName":"%s","productCode":"%s","specifications":"%s","manufacturer":"%s"}],"topMapUrl":"%s","areaId":"%s"}
#预期结果
checkDict5: {"success":true,"code":"200","message":"操作成功","data":null,"freshToken":null}
#获取指定专区
"url_area": "/product/area/queryPage"
"payload_area": {"title":"专区新增测试","description":"","disableSign":null,"terminalType":"","startTime":"","endTime":"","pageNumber":1,"pageSize":10,"areaType":1,"companyId":""}

#测试场景六：专区启用功能验证
"url6": "/product/area/updateDisableSign"
"payload6": {"areaId":"%s","disableSign":0}
#预期结果
checkDict6: {"disableSign":0}

#测试场景七：专区停用功能验证
"url7": "/product/area/updateDisableSign"
"payload7": {"areaId":"%s","disableSign":1}
#预期结果
checkDict7: {"disableSign":1}

#测试场景八：专区删除功能验证
"url8": "/product/area/delete"
"payload8": {"areaId":"%s"}
#预期结果
checkDict8: {"deleteSign":1}

#测试场景九：获取商品列表_专区管理
"url9": "/product/mall/queryProductInfoByPage"
"payload9": {"isControlSales":0,"status":101,"pageSize":10,"pageNum":1,"productName":"","productCode":"","specifications":"","manufacturer":""}
#预期结果
checkDict9: {"success":true,"code":"200","message":"OK"}

#测试场景十：列表查询条件验证_商品列表_专区管理
"url10": "/product/mall/queryProductInfoByPage"
"payload10": {"isControlSales":0,"status":101,"pageSize":10,"pageNum":1,"productName":"%s","productCode":"%s","specifications":"%s","manufacturer":"%s"}
#预期结果
checkDict10: {"productCode":"%s"}

#测试场景十一：获取站点信息
"url11": "/user/domainOpen/getByCompanyId"
"payload11": {}
#预期结果
checkDict11: {"companyId":7}

#测试场景十二：获取站点开放白名单列表
"url12": "/user/siteopen/getWhiteSiteListByPage"
"payload12": {"pageStart":1,"pageSize":10,"total":null}
#预期结果
checkDict12: {"success":true,"code":"200","message":"OK"}

#测试场景十三：列表查询条件验证_站点开放白名单列表
"url13": "/user/siteopen/getWhiteSiteListByPage"
"payload13": {"userName":"%s","iphone":"%s","companyName":"%s"}
#预期结果
checkDict13: {"userName":"%s"}

#测试场景十四：必填参数校验_专区删除
"url14": "/product/area/delete"
"payload14": {"areaId":""}
#预期结果
checkDict14: {"success":false,"code":"4102","message":"参数格式错误","data":null,"freshToken":null}

#测试场景十五：参数有效性校验_专区启停
"url15": "/product/area/updateDisableSign"
"payload15": {"areaId":"546745745754747","disableSign":0}
#预期结果
checkDict15: {"success":false,"code":"200","message":"没有可更新数据","data":null,"freshToken":null}

#测试场景十六：必填参数校验_专区启停
"url16": "/product/area/updateDisableSign"
"payload16": {"areaId":null,"disableSign":0}
#预期结果
checkDict16: {"success":false,"code":"4102","message":"参数格式错误","data":null,"freshToken":null}

#测试场景十七：获取申请客户列表
"url17": "/user/siteopen/getListByPage"
"payload17": {"userName":"","iphone":"","companyName":"","status":""}
#预期结果
checkDict17: {"success":true,"code":"200","message":"OK"}

#测试场景十八：列表查询条件验证_申请客户列表
"url181": "/user/siteopen/getListByPage"
"payload181": {"userName":"%s","iphone":"%s","companyName":"%s","status":"%s"}
#预期结果
checkDict18: {"userName":"%s"}

#获取客户信息
"url18": "/user/querySubCustomerPage"
"payload18": {"telephone":"","userName":"","userNo":"","customerCompanyName":"","status":null,"disableSign":null,"pageSize":10,"pageStart":1,"distributionSale":null,"tax":"","platformStatus":"1","jdeStatus":"0"}

#测试场景十九：获取角色信息
"url19": "/user/querySubRoleOptions"
"payload19": {}
#预期结果
checkDict19: {"total":"%s"}


#测试场景二十：获取站点基础配置信息
"url20": "/user/getBaseConfigByCompanyCode"
"payload20": {}
#预期结果
checkDict20: {"companyCode":"00102"}


#测试场景二十一：站点基本配置信息更新验证
"url21": "/user/updateBaseConfigByCompanyCode"
"payload21": {"companyCode":"%s","isUnitPrice":"%s","isDistributionUnitPrice":"%s","isProduceNumber":"%s","roleIdsProduceNumber":"%s","roleIdsUnitPrice":"%s","roleIdsDistributionUnitPrice":"%s"}
#预期结果
checkDict21: {"success":true,"code":"200","message":"OK","data":true,"freshToken":null}


#测试场景二十二：站点开放白名单导出
"url22": "/user/siteopen/exportSiteWhite"
"payload22": {"fileType":"1"}
#预期结果
checkDict22: {"total":"%s"}


#测试场景二十三：新增站点开放白名单
"url23": "/user/siteopen/saveWhiteUser"
"payload23": {"userName":"%s","iphone":"18700000000","companyName":"白名单客户新增测试"}
#预期结果
checkDict23: {"success":true,"code":"200","message":"添加成功","data":null,"freshToken":null}
checkDict23_1: {"success":false,"code":"siteopen","message":"用户不存在！","data":null,"freshToken":null}

#测试场景二十四：重复添加_新增站点开放白名单
"url24": "/user/siteopen/saveWhiteUser"
"payload24": {"userName":"%s","iphone":"18700000000","companyName":"白名单客户新增测试"}
#预期结果
checkDict24: {"success":false,"code":"siteopen","message":"用户白名单或申请已存在","data":null,"freshToken":null}

#测试场景二十五：必填参数校验_新增站点开放白名单
"url25": "/user/siteopen/saveWhiteUser"
"payload25": {"userName":"","iphone":"","companyName":""}
#预期结果
checkDict25: {"success":false,"code":"siteopen","message":"用户名不能为空","data":null,"freshToken":null}

#测试场景二十六：站点开放白名单删除功能验证
"url26": "/user/siteopen/deleteSiteopen"
#预期结果
checkDict26: {"success":true,"code":"200","message":"删除成功","data":null,"freshToken":null}

#测试场景二十七：站点开放白名单批量导入
"url27": "/user/siteopen/siteWhiteImport"
#预期结果
checkDict27: {"total":1}

#测试场景二十八：空数据校验_白名单批量导入
"url28": "/user/siteopen/siteWhiteImport"
#预期结果
checkDict28: {"success":false,"code":"siteopen","message":"第2行用户不存在","data":null,"freshToken":null}

#测试场景二十九：客户已存在_白名单批量导入
"url29": "/user/siteopen/siteWhiteImport"
#预期结果
checkDict29: {"success":false,"code":"siteopen","message":"第2行用户白名单或申请已存在","data":null,"freshToken":null}

#测试场景三十：站点白名单客户申请审核验证
"url30": "/user/siteopen/auditUser"
"payload30": {"siteOpenId":"%s","status":2}
#预期结果
checkDict30: {"status":2}

#测试场景三十一：参数必填性校验_站点白名单客户申请审核
"url31": "/user/siteopen/auditUser"
"payload31": {"siteOpenId":null,"status":2}
#预期结果
checkDict31: {"success":false,"code":"siteopen","message":"数据不存在","data":null,"freshToken":null}


#测试场景三十二：获取主站点专区列表
"url32": "/product/area/queryMainSitePage"
"payload32": {"title":"","description":"","disableSign":null,"terminalType":"","startTime":"","endTime":"","pageNumber":1,"pageSize":10,"areaType":2}
#预期结果
checkDict32: {"success":true,"code":"200","message":"操作成功"}

#测试场景三十三：列表查询条件验证_主站点专区列表
"url33": "/product/area/queryMainSitePage"
"payload33": {"title":"%s","description":"%s","disableSign":"%s","terminalType":"%s","startTime":"%s","endTime":"%s","pageNumber":1,"pageSize":100,"areaType":2}
#预期结果
checkDict33: {"title":"%s"}












