This commit is contained in:
邹宗楠
2023-07-13 10:19:22 +08:00
parent e166e0bc60
commit de2fd94a8d
2 changed files with 5 additions and 0 deletions

View File

@@ -95,6 +95,9 @@ func AutoSettingFakeDelivery() {
storeList := strings.Split(configList[0].Value, ",")
for _, v := range storeList {
storeIdAndVendorId := strings.Split(v, "-")
if len(storeIdAndVendorId) == model.NO {
continue
}
orderList, err := dao.GetOrderListByStoreList(db, []int64{utils.Str2Int64(storeIdAndVendorId[0])}, utils.Str2Int(storeIdAndVendorId[1]))
if err != nil {
globals.SugarLogger.Errorf("获取门店刷单记录错误")

View File

@@ -393,6 +393,8 @@ func createTaoVegetable(ctx *jxcontext.Context, api *tao_vegetable.API, storeSku
}
failedListStock := updateStoreSkusStockByCreate(ctx, api, storeID, vendorStoreID, successSku)
failedList = append(failedList, failedListStock...)
globals.SugarLogger.Debugf("failedList := %s", utils.Format4Output(failedList, false))
globals.SugarLogger.Debugf("storeSkuList := %s", utils.Format4Output(storeSkuList, false))
return failedList, nil
}