1
This commit is contained in:
@@ -95,6 +95,9 @@ func AutoSettingFakeDelivery() {
|
|||||||
storeList := strings.Split(configList[0].Value, ",")
|
storeList := strings.Split(configList[0].Value, ",")
|
||||||
for _, v := range storeList {
|
for _, v := range storeList {
|
||||||
storeIdAndVendorId := strings.Split(v, "-")
|
storeIdAndVendorId := strings.Split(v, "-")
|
||||||
|
if len(storeIdAndVendorId) == model.NO {
|
||||||
|
continue
|
||||||
|
}
|
||||||
orderList, err := dao.GetOrderListByStoreList(db, []int64{utils.Str2Int64(storeIdAndVendorId[0])}, utils.Str2Int(storeIdAndVendorId[1]))
|
orderList, err := dao.GetOrderListByStoreList(db, []int64{utils.Str2Int64(storeIdAndVendorId[0])}, utils.Str2Int(storeIdAndVendorId[1]))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
globals.SugarLogger.Errorf("获取门店刷单记录错误")
|
globals.SugarLogger.Errorf("获取门店刷单记录错误")
|
||||||
|
|||||||
@@ -393,6 +393,8 @@ func createTaoVegetable(ctx *jxcontext.Context, api *tao_vegetable.API, storeSku
|
|||||||
}
|
}
|
||||||
failedListStock := updateStoreSkusStockByCreate(ctx, api, storeID, vendorStoreID, successSku)
|
failedListStock := updateStoreSkusStockByCreate(ctx, api, storeID, vendorStoreID, successSku)
|
||||||
failedList = append(failedList, failedListStock...)
|
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
|
return failedList, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user