aa
This commit is contained in:
@@ -1507,13 +1507,16 @@ func UpdateActPrice4StoreSkuNameNew(db *DaoDB, storeIDs, skuIDs []int, skuNamesI
|
|||||||
}
|
}
|
||||||
|
|
||||||
if actVendorMap[model.VendorIDMTWM] == nil {
|
if actVendorMap[model.VendorIDMTWM] == nil {
|
||||||
|
if mtactMap != nil {
|
||||||
|
mtact := mtactMap[skuName.StoreID][v.SkuID]
|
||||||
v.VendorActMaps = append(v.VendorActMaps, &VendorActMap{
|
v.VendorActMaps = append(v.VendorActMaps, &VendorActMap{
|
||||||
ActID: mtactMap[skuName.StoreID][v.SkuID].ItemID,
|
ActID: mtact.ItemID,
|
||||||
ActType: mtactMap[skuName.StoreID][v.SkuID].ActType,
|
ActType: mtact.ActType,
|
||||||
ActPrice: int(jxutils.StandardPrice2Int(mtactMap[skuName.StoreID][v.SkuID].ActPrice)),
|
ActPrice: int(jxutils.StandardPrice2Int(mtact.ActPrice)),
|
||||||
VendorID: model.VendorIDMTWM,
|
VendorID: model.VendorIDMTWM,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (actVendorID == -1 || actVendorID == model.VendorIDEBAI) && v.ActPrice == 0 {
|
if (actVendorID == -1 || actVendorID == model.VendorIDEBAI) && v.ActPrice == 0 {
|
||||||
if ebaiactMap != nil {
|
if ebaiactMap != nil {
|
||||||
@@ -1528,13 +1531,16 @@ func UpdateActPrice4StoreSkuNameNew(db *DaoDB, storeIDs, skuIDs []int, skuNamesI
|
|||||||
}
|
}
|
||||||
|
|
||||||
if actVendorMap[model.VendorIDEBAI] == nil {
|
if actVendorMap[model.VendorIDEBAI] == nil {
|
||||||
|
if ebaiactMap != nil {
|
||||||
|
ebaiact := ebaiactMap[skuName.StoreID][v.SkuID]
|
||||||
v.VendorActMaps = append(v.VendorActMaps, &VendorActMap{
|
v.VendorActMaps = append(v.VendorActMaps, &VendorActMap{
|
||||||
ActID: ebaiactMap[skuName.StoreID][v.SkuID].ActID,
|
ActID: ebaiact.ActID,
|
||||||
ActType: model.ActSkuDirectDown,
|
ActType: model.ActSkuDirectDown,
|
||||||
ActPrice: int(jxutils.StandardPrice2Int(ebaiactMap[skuName.StoreID][v.SkuID].ActPrice)),
|
ActPrice: int(jxutils.StandardPrice2Int(ebaiact.ActPrice)),
|
||||||
VendorID: model.VendorIDEBAI,
|
VendorID: model.VendorIDEBAI,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if globals.IsStoreSkuAct {
|
if globals.IsStoreSkuAct {
|
||||||
v.VendorInfoMap = make(map[int]*StoreSkuVendorInfo)
|
v.VendorInfoMap = make(map[int]*StoreSkuVendorInfo)
|
||||||
|
|||||||
Reference in New Issue
Block a user