1
This commit is contained in:
@@ -144,17 +144,20 @@ func TestRetailCatSkuBatchDelete(t *testing.T) {
|
||||
|
||||
//批量更新商品进货价
|
||||
func TestBatchSetPrice(t *testing.T) {
|
||||
param := []*SpuData{
|
||||
{
|
||||
AppSpuCode: "25420",
|
||||
SkuID: "11395394828",
|
||||
PurchasePrice: "50",
|
||||
},
|
||||
}
|
||||
err := api.BatchSetRestockingPrice(utils.GetUUID(), "12422751", param)
|
||||
param := make([]*SpuData, 0, 0)
|
||||
param = append(param, &SpuData{
|
||||
AppSpuCode: "6113801",
|
||||
SkuID: "6113801",
|
||||
PurchasePrice: "0.01",
|
||||
})
|
||||
err := api.BatchSetRestockingPrice(utils.GetUUID(), "31985068", param)
|
||||
fmt.Println(err)
|
||||
}
|
||||
|
||||
func Test222(t *testing.T) {
|
||||
fmt.Println(1 / 50)
|
||||
}
|
||||
|
||||
func TestMap(t *testing.T) {
|
||||
poiCode := "20802261"
|
||||
stockList := make([]*BareStoreFoodInfo, 0, 100)
|
||||
@@ -293,7 +296,7 @@ func TestRetailInitData(t *testing.T) {
|
||||
i := 0
|
||||
for {
|
||||
// 同步商品
|
||||
fromFoodList, err1 := api.RetailListAll("21494359", i)
|
||||
fromFoodList, err1 := api.RetailListAll("31985068", i)
|
||||
for _, v := range fromFoodList {
|
||||
if v.AppFoodCode == "mtcode_1902626039134900287" {
|
||||
fmt.Println(v)
|
||||
|
||||
Reference in New Issue
Block a user