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

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

#后台运营管理系统登录信息(子站点国联医疗器械有限公司)
"username2": "Admin00102"
"password2": "Aa123456"

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

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

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

#测试场景一：返利使用明细
"url1": "/order/public/getRebateDetailAllList"
"payload1": {"terminalSign":1,"companyName":null,"customerCode":null,"customerName":null,"relevanceName":null,"transactionType":null,"relevanceCode":null,"rebateId":null,"rebateName":null,"listOrderStatus":null,"demandCode":null,"startTime":null,"endTime":null,"pageNum":1,"pageSize":10}
#预期结果
checkDict1: {"success":true,"code":"200","message":"OK"}

#测试场景二：列表查询条件验证_返利使用明细
"url2": "/order/public/getRebateDetailAllList"
"payload2": {"terminalSign":1,"companyName":null,"customerCode":"%s","customerName":"%s","relevanceName":"%s","transactionType":"%s","relevanceCode":null,"rebateId":"%s","rebateName":"%s","listOrderStatus":["%s"],"demandCode":"%s","startTime":"%s","endTime":"%s","pageNum":1,"pageSize":10}
#预期结果
checkDict2: {"customerCode":"%s"}
checkDict2_1: {"list":[]}

#测试场景三：返利规则获取验证
"url3": "/order/rebate/getList"
"payload3": {"rebatename":null,"productcode":null,"productname":null,"customercode":null,"customername":null,"pageSize":10,"pageStart":1,"rebateStatus":[],"auditstatuss":[],"pageNum":1}
#预期结果
checkDict3: {"success":true,"code":"200","message":"OK"}
checkDict3_1: {"total":"%s"}


#测试场景四：列表查询条件验证_返利规则
"url4": "/order/rebate/getList"
"payload4": {"rebatename":"%s","productcode":"%s","productname":"%s","customercode":"%s","customername":"%s","pageSize":10,"pageStart":1,"rebateStatus":["%s"],"auditstatuss":["%s"],"pageNum":1}
#预期结果
checkDict4: {"rebatename":"%s"}


#测试场景五：客户发放返利信息获取验证
"url5": "/order/rebate/queryRebateInfoList"
"payload5": {"customerCode":null,"telephone":null,"companyName":null,"rebateId":null,"rebateName":null,"relevanceName":null,"pageSize":10,"pageNum":1}
#预期结果
checkDict5: {"success":true,"code":"200","message":"OK"}

#测试场景六：列表查询条件验证_客户发放返利
"url6": "/order/rebate/queryRebateInfoList"
"payload6": {"customerCode":"%s","telephone":"%s","companyName":"%s","rebateId":"%s","rebateName":"%s","relevanceName":"%s","pageSize":null,"pageNum":null}
#预期结果
checkDict6: {"customerCode":"%s"}

#测试场景七：审核权限用户获取
"url7": "/user/queryProductApprovalUser"
"payload7": {}
#预期结果
checkDict7: {"success":true,"code":"200","message":"OK"}

#测试场景八：返利审核列表获取验证
"url8": "/order/rebate/queryRebateReviewByPage"
"payload8": {"rebateName":"","createname":null,"auditstatus":"","pageSize":10,"pageNum":1,"pageTotal":null,"firstQuery":true,"flag":true,"auditlevel":2,"rebatename":""}
#预期结果
checkDict8: {"success":true,"code":"200","message":"OK"}
checkDict8_1: {"total":"%s"}

#测试场景九：列表查询条件验证_返利审核
"url9": "/order/rebate/queryRebateReviewByPage"
"payload9": {"rebateName":"","createname":"%s","auditstatus":"%s","pageSize":10,"pageNum":1,"pageTotal":1,"firstQuery":true,"flag":true,"auditlevel":null,"rebatename":"%s"}
#预期结果
checkDict9: {"rebatename":"%s"}

#测试场景十：审核通过验证_返利审核
"url10": "/order/rebate/rebateReview"
#查询待一级审核返利规则
"payload8_1": {"rebateName":"","createname":null,"auditstatus":null,"pageSize":10,"pageNum":1,"pageTotal":null,"firstQuery":true,"flag":true,"auditlevel":1,"rebatename":""}
# 一级审核通过
"payload10_1": {"rebateid":"%s","auditstatus":"%s","contentfirst":"一级审核通过验证","contentsecond":null,"auditFlag":"1","auditlevel":"%s"}
#查询待二级审核返利规则
"payload8_2": {"rebateName":"","createname":null,"auditstatus":null,"pageSize":10,"pageNum":1,"pageTotal":null,"firstQuery":true,"flag":true,"auditlevel":2,"rebatename":""}
# 二级审核拒绝
"payload10_2": {"rebateid":"%s","auditstatus":"%s","contentfirst":null,"contentsecond":"二级审核拒绝验证","auditFlag":"2","auditlevel":"%s"}
#预期结果
checkDict10: {"auditstatus":"%s"}

#测试场景十一：审核通过验证_返利审核
#同上

#测试场景十二：返利规则商品黑名单查询验证
"url11": "/order/rebateProduct/getList"
"payload11": {"rebateid":"%s","productname":"","productcode":"","specifications":"","manufacturer":"","pageNum":1,"pageSize":10,"pageTotal":0}
#预期结果
checkDict11: {"success":true,"code":"200","message":"OK"}
checkDict11_1: {"total":"%s"}

#测试场景十三：列表查询条件验证_商品黑名单
"url12": "/order/rebateProduct/getList"
"payload12": {"rebateid":"%s","productname":"%s","productcode":"%s","specifications":"%s","manufacturer":"%s","pageNum":1,"pageSize":10,"pageTotal":0}
#预期结果
checkDict12: {"productname":"%s"}
checkDict12_1: {"list":[]}

#测试场景十四：返利规则商品客户范围查询验证
"url13": "/order/rebateUser/getList"
"payload13": {"templateId":null,"customername":"","customercode":"","pageNum":1,"pageTotal":0,"pageSize":10,"rebateid":"%s"}
#预期结果
checkDict13: {"success":true,"code":"200","message":"OK"}
checkDict13_1: {"total":"%s"}

#测试场景十五：列表查询条件验证_客户范围
"url14": "/order/rebateUser/getList"
"payload14": {"templateId":null,"customername":"%s","customercode":"%s","pageNum":1,"pageTotal":1,"pageSize":10,"rebateid":"%s"}
#预期结果
checkDict14: {"customercode":"%s"}

#测试场景十六：产品线商品获取验证
"url15": "/product/queryProductForControlSalesByPage"
"payload15": {"productName":"","productCode":"","relevanceCode":"10052433","pageNum":1,"pageSize":10,"pageTotal":0}
#预期结果
checkDict15: {"success":true,"code":"200","message":"OK"}

#测试场景十七：列表查询条件验证_产品线商品
"url16": "/product/queryProductForControlSalesByPage"
"payload16": {"productName":"%s","productCode":"%s","relevanceCode":"10052433","pageNum":1,"pageSize":10,"pageTotal":143}
#预期结果
checkDict16: {"relevanceCode":"%s"}

#测试场景十八：产品线code获取验证
"url17": "/product/queryLineCodeInfos"
"payload17": {"sign":1}
#预期结果
checkDict17: {"success":true,"code":"200","message":"OK"}


#测试场景十九：客户名单批量导入验证_返利规则
"url18": "/product/uploadCustomerExcel"
#获取客户信息
"url_customer": "/user/queryUserForControlSalesByPage"
"payload_customer": {"customerName":"","customerCode":"","pageNum":1,"pageSize":10,"pageTotal":null,"currentPage":1}

#预期结果
checkDict18: {"success":true}


#测试场景二十：商品黑名单批量导入验证_返利规则
"url19": "/product/uploadProductExcel"
"payload19": {"relevanceCode":10052433}
#获取商品信息
"url_product": "/product/queryProductForControlSalesByPage"
"payload_product": {"productName":"","productCode":"","relevanceCode":"10052433","pageNum":1,"pageSize":10,"pageTotal":0}

#预期结果
checkDict19: {"success":true}

#测试场景二十一：商品黑名单批量导入_返利规则_商品与产品线不匹配
"payload20": {"relevanceCode":67667667676767}
#预期结果
checkDict20: {"success":false}

#测试场景二十二：返利规则新增验证
"url21": "/order/rebate/addRebates"
"payload21": {"relevanceCode":"1099","rebatename":"新增返利规则验证","useLimitStart":"10","useLimitEnd":"20","istax":"1","taxround":"0","isdisposable":"0","isaudit":0,"auditlevel":"1","auditidfirst":"","auditidsecond":"","customerDataList":[{"customername":"%s","customercode":"%s"}],"productDataList":[{"productcode":"%s","productname":"%s","specifications":"%s","manufacturer":"%s"}],"auditstatus":"","relevanceName":"施乐辉"}
#查询商品信息
"payload2011_product": {"productName":"","productCode":"","relevanceCode":"1099","pageNum":1,"pageSize":10,"pageTotal":0}
#预期结果
checkDict21: {"success":True,"code":"200","message":"ok"}

#测试场景二十三：返利规则新增_产品线已被绑定
#预期结果
checkDict22: {"success":false,"code":"200","message":"产品线已绑定其它返利规则","data":null,"freshToken":null}

#测试场景二十四：返利规则详情获取验证
"url23": "/order/rebate/getRebateDetail"
"payload23": {"rebateid":"%s"}
#获取指定返利规则
"payload23_list": {"rebatename":"新增返利规则验证","productcode":null,"productname":null,"customercode":null,"customername":null,"pageSize":10,"pageStart":1,"rebateStatus":[],"auditstatuss":[],"pageNum":1}
#预期结果
checkDict23: {"rebateid":"%s"}

#测试场景二十五：返利规则编辑功能验证
"url24": "/order/rebate/updateRebateProAndUser"
"payload24": {"relevanceCode":"2011","rebatename":"新增返利规则验证","useLimitStart":1,"useLimitEnd":2,"istax":"1","taxround":"0","isdisposable":"0","isaudit":0,"auditlevel":"1","auditidfirst":null,"auditidsecond":null,"customerDataList":[{"customername":"%s","customercode":"%s"}],"productDataList":[{"productcode":"%s","productname":"%s","specifications":"%s","manufacturer":"%s"}],"auditstatus":102,"relevanceName":"施乐辉敷料","rebateid":"%s"}
#预期结果
checkDict24: {"success":true,"code":"200","message":"ok","data":true}


#测试场景二十六：返利规则启用功能验证
"url26": "/order/rebate/updateRebateStatus"
"payload26": {"rebateid":"%s","status":101}
#预期结果
checkDict26: {"success":true,"code":"200","message":"ok","data":1}
checkDict26_101: {"status":101}


#测试场景二十七：返利规则删除功能验证
"url25": "/order/rebate/updateRebateDeleteSign"
"payload25": {"rebateid":"%s"}
#预期结果
checkDict25: {"success":true,"code":"200","message":"ok","data":1}
checkDict25_1: {"deleteSign":1}


#测试场景二十八：返利规则停用功能验证
"url27": "/order/rebate/updateRebateStatus"
"payload27": {"rebateid":"%s","status":102}
#预期结果
checkDict27: {"success":true,"code":"200","message":"ok","data":1}
checkDict27_102: {"status":102}

#测试场景二十九：查询客户对应返利规则验证
"url28": "/order/rebate/getRebateSkuDetail"
"payload28": {"customercode":"%s"}
#获取返利规则列表_启用
"url28_1": "/order/rebate/getList"
"payload28_1": {"rebatename":null,"productcode":null,"productname":null,"customercode":"","customername":null,"pageSize":10,"pageStart":1,"rebateStatus":["101"],"auditstatuss":[],"pageNum":1}
#预期结果
checkDict28: {"customercode":"%s"}


#测试场景三十：批量导入验证_客户发放返利
"url29": "/order/rebateOperaSku/rebateOperaSkuImport"
#预期结果
checkDict29: {"success":true,"code":"200","message":"OK"}


#测试场景三十一：客户发放返利新增验证
"url30": "/order/rebateOperaSku/addRebateSku"
"payload30": {"rebateid":"%s","transactiontype":"1","transactionamount":"%s","rebateValidity":"2023-11-29T16:00:00.000Z","rebateStartTime":"2023-11-16T16:00:00.000Z","customercode":"%s","note":"返利编辑验证","effectivetype":null}
#预期结果
checkDict30: {"success":true,"code":"200"}


#测试场景三十二：客户发放返利编辑功能验证
#同上


#测试场景三十三：三方用户查询验证
"url31": "/user/public/queryThreeUserByPage"
"payload31": {"customerName":"","customerCode":"","pageNum":1,"pageSize":10,"pageTotal":0,"currentPage":1}
#预期结果
checkDict31: {"success":true,"code":"200"}


#测试场景三十四：列表查询条件验证_三方用户列表
"url32": "/user/public/queryThreeUserByPage"
"payload32": {"customerName":"%s","customerCode":"%s","pageNum":1,"pageSize":10,"pageTotal":18310,"currentPage":1}
#预期结果
checkDict32: {"customerCode":"%s"}



#测试场景三十五：返利发放明细获取验证
"url33": "/order/public/rebatetrip/getList"
"payload33": {"companyCode":null,"status":null,"rebateTheme":"","customerName":"","customerCode":"","productName":"","productCode":"","pageSize":10,"pageNum":1}
#预期结果
checkDict33: {"success":true,"code":"200"}
checkDict33_1: {"total":"%s"}

#测试场景三十六：列表查询条件验证_返利发放列表
"url34": "/order/public/rebatetrip/getList"
"payload34": {"companyCode":null,"status":"%s","rebateTheme":"%s","customerName":"%s","customerCode":"%s","productName":"%s","productCode":"%s","pageSize":10,"pageNum":1}
#预期结果
checkDict34: {"rebateTheme":"%s"}


#测试场景三十七：可使用商品返利清单获取验证
"url35": "/order/public/rebatetripPro/getRebatetripProList"
"payload35": {"productname":"","productcode":"","specifications":"","manufacturer":"","rebateTripId":"%s","pageNum":1,"pageSize":10,"pageTotal":1}
#预期结果
checkDict35: {"success":true,"code":"200"}
checkDict35_1: {"total":"%s"}


#测试场景三十八：列表查询条件验证_可使用商品返利清单
"url36": "/order/public/rebatetripPro/getRebatetripProList"
"payload36": {"productname":"%s","productcode":"%s","specifications":"%s","manufacturer":"%s","rebateTripId":"%s","pageNum":1,"pageSize":10,"pageTotal":1}
#预期结果
checkDict36: {"productCode":"%s"}


#测试场景三十九：可发放客户清单获取验证
"url37": "/order/public/rebatetripCus/getRebatetripCusList"
"payload37": {"rebateTripId":"%s","customername":"","customercode":"","pageNum":1,"pageTotal":0,"pageSize":10}
#预期结果
checkDict37: {"success":true,"code":"200"}
checkDict37_1: {"total":"%s"}


#测试场景四十：列表查询条件验证_可发放客户清单
"url38": "/order/public/rebatetripCus/getRebatetripCusList"
"payload38": {"rebateTripId":"%s","customername":"%s","customercode":"%s","pageNum":1,"pageTotal":1,"pageSize":10}
#预期结果
checkDict38: {"customerCode":"%s"}


#测试场景四十一：批量导入商品验证_返利发放管理
"url41": "/order/public/uploadRebateProductExcel"
#预期结果
checkDict41: {"productCode":"%s"}


#测试场景四十二：批量导入客户验证_返利发放管理
"url40": "/order/public/uploadCusRebateExcel"
#预期结果
checkDict40: {"customerCode":"%s"}
#客户编码未与此站点首营
checkDict40_1: {"message":"第2行客户编码未与此站点首营"}


#测试场景四十三：启用功能验证_返利发放
"url39": "/order/public/rebatetrip/undateRebatetripStatus"
"payload39": {"rebateTripId":"%s","status":"%d"}
#预期结果
checkDict39: {"success":true,"code":"200","message":"OK","data":1,"freshToken":null}
checkDict39_1: {"status":"%s"}
#返利发放规则列表查询指定规则
"url39_1": "/order/public/rebatetrip/getList"
"payload39_1": {"companyCode":null,"status":null,"rebateTheme":"返利发放新增验证","customerName":"","customerCode":"","productName":"","productCode":"","pageSize":10,"pageNum":1}

#测试场景四十四：停用功能验证_返利发放
#同上


#测试场景四十五：返利发放编辑功能验证
"url42": "/order/public/rebatetrip/undateRebatetripVo"
#预期结果
checkDict42: {"rebateTripId":"%s"}


#测试场景四十六：返利发放新增验证
"url43": "/order/public/rebatetrip/addRebatetripVo"
"payload43": {"companyCode":"00111","invalidTimeStr":"2023-11-30","takeEffectTimeStr":"2023-11-20","rebateTheme":"%s","useLimitEnd":"%d","rebatetripProList":[{"commonName":"一次性使用灭菌橡胶外科手套","isSerialNumberManage":"N","measuringUnitName":"副","firstCategory":"医用耗材","specialSort":"0101","specifications":"SFTCS1145E 7.5 无粉麻面","productName":"一次性使用灭菌橡胶外科手套","isRelease":1,"newProductClassify2":"","productClassify":"6866","filialeCode":"00111","auxiliaryMeasuringUnit":"AS","medicineType":"","thirdCategory":"灭菌外科手套","serialNumber":"","productId":7439,"deleteSign":0,"otherStorageCondition":"10~50℃","dosageForm":"","manufacturerCode":"7007634","relevanceCode":"14479934","pricingMeasuringUnit":"AS","defaultImageUrl":"https://pro-cmdc.oss-cn-beijing.aliyuncs.com/productFile/2021/04/13/bb721764-a0ca-4ff7-9d63-778803bc0c68.jpg","productCategories":"01","atcClassify":"","isSee":0,"measuringUnit":"AS","applicationDepartment":"","secondCategoryId":450,"storageCondition":"002","status":101,"newRiskRank":"","secondCategory":"进口防护耗材","newClassifyLevel":"","isControlSales":0,"newProductClassify":"","description":"","lineName":"麦迪康","firstCategoryId":433,"thirdCategoryId":451,"manufacturer":"TG MEDICAL SDN. BHD.","lineCode":"2012","referencePrice":101,"relevanceName":"一次性使用灭菌橡胶外科手套","isGift":false,"jdeUpdateStr":"","keyWords":"一次性使用灭菌橡胶外科手套","atcCategories":"","riskRank":"002","materialCode":"SFTCS1145E-0040050","updateTime":"2023-10-30T14:20:31","productNature":"01","medicalInsuranceCode":"","uploadTime":"2023-10-30T06:20:31.000+0000","approvalNumber":"","jdeStatus":"P","filialeName":"","diagnosticMedicineCategories":"","productCode":"14479934","procurementMeasuringUnit":"AS","createTime":"2021-11-08T14:39:53","conSign":0,"sdOutStorage":0,"countryOfOrigin":"MY"}],"rebatetripCusList":[{"companyCode":"00111","customerCode":"-1887261","customerName":"河南通盛易达医用电子设备股份有限公司","grantAmount":"123","userId":134145,"useAmount":0}],"rebatetripAmountList":[{"companyCode":"00111","customerCode":"-1887261","customerName":"河南通盛易达医用电子设备股份有限公司","grantAmount":"123","userId":134145,"useAmount":0}]}
#预期结果
checkDict43: {"rebateTheme":"%s"}
checkDict43_1: {"success":false,"code":"11025","message":"商品：一次性使用灭菌橡胶外科手套存在其它返利规则中","data":null,"freshToken":null}


#测试场景四十七：返利使用明细导出验证
"url44": "/order/public/getRebateDetailAllListExcel"
"payload44": {"terminalSign":1,"companyName":null,"customerCode":null,"customerName":null,"relevanceName":null,"transactionType":null,"relevanceCode":null,"rebateId":null,"rebateName":null,"listOrderStatus":null,"demandCode":null,"startTime":null,"endTime":null,"pageNum":null,"pageSize":null}
#预期结果
checkDict44: {"customerCode":"1000086"}


#返利计算逻辑核验
#测试场景一：修改返利接口验证
"url01": "/order/public/handleRebate"
"payload01": {"userId":69,"companyCode":"00111","productLineCode":"3111","rebateAmount":"%s","shareType":1,"upperLimit":1,"floorLimit":0,"rebateUseProductVoList":[{"index":0,"demandSkuId":null,"lineNumber":null,"productCode":"11886928","quantity":1,"price":34.9}]}
#预期结果
checkDict01: {"rebateAmount":"%s"}























































