This commit is contained in:
邹宗楠
2025-05-23 13:38:57 +08:00
parent 3909dbc5f5
commit 90ba173b80
3 changed files with 16 additions and 0 deletions

View File

@@ -1252,6 +1252,9 @@ func GetSensitiveWord(singleStoreHandler partner.ISingleStoreStoreSkuHandler, st
}
func MergeSkuSaleStatusWithStoreOpTime(sku *dao.StoreSkuSyncInfo, storeDetail *dao.StoreDetail, now int16) (outStatus int) {
// 只要商品在京西可售,一律上架状态,下架状态会导致,同步商品拥有可售时间但是商品下架了
// 可售时间范围外的商品,依旧是上架状态,只是三方平台不展示商品
return sku.MergedStatus
if sku.MergedStatus == model.SkuStatusNormal && sku.StatusSaleBegin > 0 && sku.StatusSaleEnd > 0 && storeDetail.Status == model.StoreStatusOpened {
//商品可售时间的差集与门店营业时间的交集为不可售,其余为原本状态
var openTime int16