This commit is contained in:
邹宗楠
2022-12-29 10:54:32 +08:00
parent f337c6d36b
commit c40195a45f
2 changed files with 2 additions and 1 deletions

View File

@@ -513,6 +513,8 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag
}
} else if model.IsSyncStatusNew(sku.SkuSyncStatus) {
calVendorPrice4StoreSku(sku, storeDetail.PricePercentagePackObj, int(storeDetail.PricePercentage))
globals.SugarLogger.Debugf("calVendorPrice4StoreSku======= %s", utils.Format4Output(singleStoreHandler, false))
globals.SugarLogger.Debugf("calVendorPrice4StoreSku======= %d", sku.MergedStatus)
if singleStoreHandler == nil {
if dao.IsVendorThingIDEmpty(sku.VendorSkuID) {
// todo 多平台商品库没有正常创建,直接跳过

View File

@@ -702,7 +702,6 @@ func GetStoreSkus(db *DaoDB, vendorID, storeID int, skuIDs []int) (skus []*Store
// 以sku为基础来做全同步
// 多门店模式厂商适用
func GetFullStoreSkus(db *DaoDB, vendorID, storeID int) (skus []*StoreSkuSyncInfo, err error) {
// 对于多门店平台商品库删除后不需要操作门店商品所以sku_name用JOIN, sku与sku_name也可以直接排除下架的
sql := `
SELECT