This commit is contained in:
邹宗楠
2025-03-06 11:53:48 +08:00
parent 21be13e9d0
commit 625e6b570c

View File

@@ -800,7 +800,10 @@ func CreateActForMtByOrder(ctx *jxcontext.Context, act *model.Act, vendorIDs []i
}
actIdResult := make(map[string]int64, 0)
mtApi := mtwm.GetAPI(vendorOrgCode, storeID, storeDetail.VendorStoreID)
actResult, fileInfoList, _ := mtApi.RetailDiscountBatchSave2(storeDetail.VendorStoreID, actType, actData)
actResult, fileInfoList, err6 := mtApi.RetailDiscountBatchSave2(storeDetail.VendorStoreID, actType, actData)
globals.SugarLogger.Debugf("-----------actResult : %s", utils.Format4Output(actResult, false))
globals.SugarLogger.Debugf("-----------fileInfoList : %s", utils.Format4Output(fileInfoList, false))
globals.SugarLogger.Debugf("-----------err6 : %v", err6)
for _, v := range actResult {
var (
actStoreSkuMapUpdate *model.ActStoreSkuMap
@@ -832,7 +835,10 @@ func CreateActForMtByOrder(ctx *jxcontext.Context, act *model.Act, vendorIDs []i
actData2[i-1].Sequence = i
actData2[i-1].OrderLimit = 1
}
mtApi.RetailDiscountBatchSave2(storeDetail.VendorStoreID, actType, actData2)
a, b, c := mtApi.RetailDiscountBatchSave2(storeDetail.VendorStoreID, actType, actData2)
globals.SugarLogger.Debugf("-----------a : %s", utils.Format4Output(a, false))
globals.SugarLogger.Debugf("-----------b : %s", utils.Format4Output(b, false))
globals.SugarLogger.Debugf("-----------c : %v", c)
}
for _, v := range fileInfoList {
err2 += fmt.Sprintf("创建失败门店ID[%v]商品ID[%v],原因:[%v]", storeID, v.AppFoodCode, v.ErrorMsg)