- store sku unit price.
This commit is contained in:
@@ -37,13 +37,13 @@ func (p *PurchaseHandler) SyncStoreSku(storeID int, skuIDs []int, isForce bool,
|
||||
for _, v := range batchItemList {
|
||||
storeSku := v.(*model.StoreSkuBind)
|
||||
if storeSku.JdSyncStatus&model.SyncFlagChangedMask != 0 {
|
||||
if storeSku.JdSyncStatus&model.SyncFlagPriceMask != 0 || isForce {
|
||||
if storeSku.JdSyncStatus&(model.SyncFlagPriceMask|model.SyncFlagNewMask) != 0 || isForce {
|
||||
skuPriceInfoList = append(skuPriceInfoList, &jdapi.SkuPriceInfo{
|
||||
OutSkuId: utils.Int2Str(storeSku.SkuID),
|
||||
Price: storeSku.Price,
|
||||
})
|
||||
}
|
||||
if storeSku.JdSyncStatus&model.SyncFlagSaleMask != 0 || isForce {
|
||||
if storeSku.JdSyncStatus&(model.SyncFlagSaleMask|model.SyncFlagNewMask) != 0 || isForce {
|
||||
vendibility := &jdapi.StockVendibility{
|
||||
OutSkuId: utils.Int2Str(storeSku.SkuID),
|
||||
DoSale: true,
|
||||
|
||||
Reference in New Issue
Block a user