# 多采商城登录信息
"username": "BJ0621"
"password": "Aa123456"
#后台运营管理系统登录信息
"username1": "admin"
"password1": "Aa123456"

"username2": "Admin00111"
"password2": "Aa123456"

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


#常购清单列表新增商品接口地址
"url1": "/product/mall/addFrequentPurchase"


json_headers1: {
"Content-Type": "application/json",
  "Cmdc_access_token": "%s",
  "Sourcetype": "mall"
}

#测试场景：新增商品至用户的常购清单列表
#查询已上架商品列表接口地址
"url10": "/product/mall/queryProductInfoByPage"
#查询已上架商品列表请求报文
"payload10": {"isFbList":0,"filialeCode":"00111","productName":null,"productCode":null,"specifications":null,"materialCode":null,"manufacturer":null,"lineName":null,"riskRank":null,"isRelease":"1","isExistImage":null,"jdeStatus":"P","isGift":null,"description":null,"tbsj":[],"pageNum":1,"pageSize":8,"total":3,"firstQuery":true,"flag":true,"preInvalidStatus":null,"isControlSales":"0","startTime":null,"endTime":null,"status":101}
#添加商品至购物车报文
"payload1": {"currentCompanyId":3,"productId":"%s","quantity":1,"agreementPriceId":0,"price":"%s"}
#预期结果
checkDict1: {"success":true,"code":"200","message":"OK","data":"ok"}


#测试场景：新增不存在的商品至用户的常购清单列表
json_headers4: {
  "Cmdc_access_token": "%s",
  "Sourcetype": "mall"
}

"payload400": {"currentCompanyId":null,"productId":"%d","quantity":1,"agreementPriceId":0,"price":68.88}
#预期结果
checkDict400: {"success":false,"code":"1078","message":"该商品不存在，加入购物车失败","data":null,"freshToken":null}




#获取用户常购清单列表接口地址
"url2": "/product/mall/queryTotalFrequentPurchaseList"

#测试场景：获取用户常购清单列表
json_headers2: {
  "Cmdc_access_token": "%s",
  "Sourcetype": "mall"
}

"payload2": {"productName":"","materialCode":"","manufacturer":"","licenseCode":"","timeSortStatus":0,"pageSize":100,"pageStart":1}
#预期结果
checkDict2: {"success":true,"code":"200","message":"OK"}



#常购清单商品删除接口地址
"url3": "/product/mall/removeFrequentPurchase"

#测试场景：从用户常购清单列表删除已添加的商品
json_headers3: {
  "Cmdc_access_token": "%s",
  "Sourcetype": "mall"
}

"payload3": {"frequentPurchaseIdList":["%s"]}
#预期结果
checkDict3: {"success":true,"code":"200","message":"OK","data":"ok"}


#测试场景：新增已失效商品至用户的常购清单列表
#查询已上架商品列表接口地址
"url40": "/product/mall/queryProductByJdeStatus"
#查询已失效商品列表请求报文
"payload40": {"isFbList":0,"filialeCode":"00102","productName":null,"productCode":null,"specifications":null,"materialCode":null,"manufacturer":null,"lineName":null,"riskRank":null,"isRelease":null,"isExistImage":null,"jdeStatus":null,"isGift":null,"description":null,"tbsj":[],"pageNum":1,"pageSize":8,"total":6,"firstQuery":true,"flag":true,"preInvalidStatus":null,"isControlSales":"0","startTime":null,"endTime":null}
#添加已失效商品至购物车报文
"payload4": {"currentCompanyId":null,"productId":"%d","quantity":1,"agreementPriceId":0,"price":"%d"}
#预期结果
checkDict4: {'success': False, 'code': 'addFrequentPurchaseFail', 'message': '商品为失效状态，不可加入常购清单', 'data': None, 'freshToken': None}


#测试场景：新增控销商品至用户的常购清单列表
#查询控销商品列表接口地址
"url50": "/product/mall/queryProductInfoByPage"
#查询控销商品列表请求报文
"payload50": {"isFbList":0,"filialeCode":"00102","productName":null,"productCode":null,"specifications":null,"materialCode":null,"manufacturer":null,"lineName":null,"riskRank":null,"isRelease":"1","isExistImage":null,"jdeStatus":"P","isGift":"0","description":null,"tbsj":[],"pageNum":1,"pageSize":8,"total":115,"firstQuery":true,"flag":true,"preInvalidStatus":null,"isControlSales":"1","startTime":null,"endTime":null,"status":101}
#添加控销商品至购物车报文
"payload5": {"currentCompanyId":null,"productId":"%d","quantity":1,"agreementPriceId":0,"price":"%d"}
#预期结果
checkDict5: {'success': False, 'code': 'addFrequentPurchaseFail', 'message': '商品为控销状态，不可加入常购清单', 'data': None, 'freshToken': None}


#测试场景：新增赠品_控销_商品至用户的常购清单列表
#查询赠品_控销_商品列表接口地址
"url60": "/product/mall/queryProductInfoByPage"
#查询赠品_控销_商品列表请求报文
"payload60": {"isFbList":0,"filialeCode":null,"productName":null,"productCode":null,"specifications":null,"materialCode":null,"manufacturer":null,"lineName":"","riskRank":null,"isRelease":"1","isExistImage":null,"jdeStatus":"P","isGift":"1","description":null,"tbsj":[],"pageNum":1,"pageSize":8,"total":6,"firstQuery":true,"flag":true,"preInvalidStatus":null,"isControlSales":"1","sdOutStorage":"","startTime":null,"endTime":null,"status":101}
#添加赠品_控销_商品至购物车报文
"payload6": {"currentCompanyId":null,"productId":"%d","quantity":1,"agreementPriceId":0,"price":"%d"}
#预期结果
checkDict6: {'success': False, 'code': 'addFrequentPurchaseFail', 'message': '商品为控销状态，不可加入常购清单', 'data': None, 'freshToken': None}


#测试场景：新增赠品至用户的常购清单列表
#查询赠品列表接口地址
"url70": "/product/mall/queryProductInfoByPage"
#查询赠品列表请求报文
"payload70": {"isFbList":0,"filialeCode":"00102","productName":null,"productCode":null,"specifications":null,"materialCode":null,"manufacturer":null,"lineName":null,"riskRank":null,"isRelease":"1","isExistImage":null,"jdeStatus":"P","isGift":"1","description":null,"tbsj":[],"pageNum":1,"pageSize":8,"total":11,"firstQuery":true,"flag":true,"preInvalidStatus":null,"isControlSales":"0","startTime":null,"endTime":null,"status":101}
#添加赠品至购物车报文
"payload7": {"currentCompanyId":null,"productId":"%d","quantity":1,"agreementPriceId":0,"price":"%d"}
#预期结果
checkDict7: {"success":true,"code":"200","message":"OK","data":"ok"}


#测试场景：新增JDE已停用的商品至用户的常购清单列表
#查询JDE已停用的商品列表接口地址
"url80": "/product/mall/queryProductInfoByPage"
#查询JDE已停用的商品列表请求报文
"payload80": {"isFbList":0,"filialeCode":null,"productName":null,"productCode":null,"specifications":null,"materialCode":null,"manufacturer":null,"lineName":null,"riskRank":null,"isRelease":null,"isExistImage":null,"jdeStatus":"O","isGift":null,"description":null,"tbsj":[],"pageNum":1,"pageSize":8,"total":121,"firstQuery":true,"flag":true,"preInvalidStatus":null,"isControlSales":"","startTime":null,"endTime":null,"status":101}
#添加JDE已停用的商品至购物车报文
"payload8": {"currentCompanyId":null,"productId":"%d","quantity":1,"agreementPriceId":0,"price":"%d"}
#预期结果
checkDict8: {'success': False, 'code': 'addFrequentPurchaseFail', 'message': '商品为失效状态，不可加入常购清单', 'data': None, 'freshToken': None}
checkDict8_1: {"success":false,"code":"1078","message":"该商品不存在，加入购物车失败","data":null,"freshToken":null}


#新增跨站点商品至常购清单列表
"payload90": {"currentCompanyId":3,"productId":23400,"quantity":1,"agreementPriceId":0,"price":1260,"filialeCode":"00103"}
"payload91": {"currentCompanyId":3,"productId":"23400","quantity":1,"agreementPriceId":0,"price":1260}
#商品查询
#查询站点国药集团河南省医疗器械有限公司商品信息
"payload4000": {"isFbList":0,"filialeCode":"00140","productName":null,"productCode":null,"specifications":null,"materialCode":null,"manufacturer":null,"lineName":null,"riskRank":null,"isRelease":"1","isExistImage":null,"jdeStatus":"P","isGift":"0","description":null,"tbsj":[],"pageNum":1,"pageSize":8,"total":8850,"firstQuery":true,"flag":true,"preInvalidStatus":null,"isControlSales":"0","startTime":null,"endTime":null,"status":101}
#查询站点国药集团联合医疗器械有限公司商品信息
"payload4001": {"isFbList":0,"filialeCode":"00102","productName":null,"productCode":null,"specifications":null,"materialCode":null,"manufacturer":null,"lineName":null,"riskRank":null,"isRelease":"1","isExistImage":null,"jdeStatus":"P","isGift":"0","description":null,"tbsj":[],"pageNum":1,"pageSize":8,"total":218,"firstQuery":true,"flag":true,"preInvalidStatus":null,"isControlSales":"0","startTime":null,"endTime":null,"status":101}



#预期结果
checkDict9: {"success":true,"code":"200","message":"OK","data":"ok"}
checkDict90: {"success":false,"code":"1078","message":"该商品不存在，加入购物车失败","data":null,"freshToken":null}



#站点切换
"url2000": "/user/mall/switchWebsite"
"payload2000": {"companyId":3,"companyCode":"00103"}
"payload2001": {"companyId":7,"companyCode":"00102"}
"payload2002": {"companyId":8,"companyCode":"00140"}
"payload3001": {"currentCompanyId":3,"productId":"396","quantity":1,"agreementPriceId":0,"price":230}