This commit is contained in:
邹宗楠
2024-05-24 09:49:14 +08:00
parent 6afc1582fa
commit ad5f763b56
16 changed files with 1547 additions and 81 deletions

View File

@@ -229,8 +229,9 @@ func TestBatchSetPrice(t *testing.T) {
err := api.BatchSetRestockingPrice(utils.GetUUID(), "12422751", param)
fmt.Println(err)
}
func TestRetailDelete(t *testing.T) {
poiCode := "20978764"
poiCode := "7954977"
i := 0
count := 0
@@ -243,11 +244,11 @@ func TestRetailDelete(t *testing.T) {
}
count += len(fromFoodList)
//for k, v := range fromFoodList {
// if err := api.RetailDelete(utils.Int2Str(k), poiCode, v.AppFoodCode); err != nil {
// fmt.Println(err)
// }
//}
for k, v := range fromFoodList {
if err := api.RetailDelete(utils.Int2Str(k), poiCode, v.AppFoodCode); err != nil {
fmt.Println(err)
}
}
//stockList := make([]*BareStoreFoodInfo, 0, 100)
//for _, fl := range fromFoodList {
// stockList = append(stockList, &BareStoreFoodInfo{