商品审核查询修改
This commit is contained in:
@@ -4537,7 +4537,21 @@ func StoreSkuPriceAudit(ctx *jxcontext.Context, storeIDs, nameIDs []int, status
|
|||||||
UnitPrice: storeAudits[0].UnitPrice,
|
UnitPrice: storeAudits[0].UnitPrice,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
_, err = UpdateStoresSkus(ctx, 0, []int{storeID}, skuBindInfos, false, isAsync, isContinueWhenError)
|
var num int64
|
||||||
|
db := dao.GetDB()
|
||||||
|
skuIDs, err := updateStoresSkusWithoutSync(ctx, db, storeIDs, skuBindInfos, false)
|
||||||
|
if err != nil {
|
||||||
|
return "", err
|
||||||
|
}
|
||||||
|
isAsync = asyncStoreSkuOpFilter(ctx, isAsync)
|
||||||
|
num = int64(len(skuIDs))
|
||||||
|
if num > 0 {
|
||||||
|
hint, err = CurVendorSync.SyncStoresSkus(ctx, nil, 0, db, nil, storeIDs, skuIDs, false, isAsync, isContinueWhenError)
|
||||||
|
}
|
||||||
|
if num == 0 || !isAsync || hint == "" {
|
||||||
|
hint = utils.Int64ToStr(num)
|
||||||
|
}
|
||||||
|
// _, err = UpdateStoresSkus(ctx, 0, []int{storeID}, skuBindInfos, false, isAsync, isContinueWhenError)
|
||||||
} else if status == model.StoreAuditStatusRejected {
|
} else if status == model.StoreAuditStatusRejected {
|
||||||
storeAudits[0].UserID = ctx.GetUserID()
|
storeAudits[0].UserID = ctx.GetUserID()
|
||||||
storeAudits[0].Status = model.StoreAuditStatusRejected
|
storeAudits[0].Status = model.StoreAuditStatusRejected
|
||||||
|
|||||||
Reference in New Issue
Block a user