aa
This commit is contained in:
@@ -1495,7 +1495,7 @@ func UpdateActPrice4StoreSkuNameNew(db *DaoDB, storeIDs, skuIDs []int, skuNamesI
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (actVendorID == -1 || actVendorID == model.VendorIDMTWM) && v.ActPrice == 0 {
|
if (actVendorID == -1 || actVendorID == model.VendorIDMTWM) && v.ActPrice == 0 {
|
||||||
if mtactMap != nil {
|
if len(mtactMap) > 0 {
|
||||||
mtact := mtactMap[skuName.StoreID][v.SkuID]
|
mtact := mtactMap[skuName.StoreID][v.SkuID]
|
||||||
if mtact != nil {
|
if mtact != nil {
|
||||||
v.ActPrice = int(jxutils.StandardPrice2Int(mtact.ActPrice))
|
v.ActPrice = int(jxutils.StandardPrice2Int(mtact.ActPrice))
|
||||||
@@ -1507,20 +1507,21 @@ func UpdateActPrice4StoreSkuNameNew(db *DaoDB, storeIDs, skuIDs []int, skuNamesI
|
|||||||
}
|
}
|
||||||
|
|
||||||
if actVendorMap[model.VendorIDMTWM] == nil {
|
if actVendorMap[model.VendorIDMTWM] == nil {
|
||||||
if mtactMap != nil {
|
if len(mtactMap) > 0 {
|
||||||
fmt.Println("1111111111111111111111", mtactMap)
|
|
||||||
mtact := mtactMap[skuName.StoreID][v.SkuID]
|
mtact := mtactMap[skuName.StoreID][v.SkuID]
|
||||||
v.VendorActMaps = append(v.VendorActMaps, &VendorActMap{
|
if mtact != nil {
|
||||||
ActID: mtact.ItemID,
|
v.VendorActMaps = append(v.VendorActMaps, &VendorActMap{
|
||||||
ActType: mtact.ActType,
|
ActID: mtact.ItemID,
|
||||||
ActPrice: int(jxutils.StandardPrice2Int(mtact.ActPrice)),
|
ActType: mtact.ActType,
|
||||||
VendorID: model.VendorIDMTWM,
|
ActPrice: int(jxutils.StandardPrice2Int(mtact.ActPrice)),
|
||||||
})
|
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 len(ebaiactMap) > 0 {
|
||||||
ebaiact := ebaiactMap[skuName.StoreID][v.SkuID]
|
ebaiact := ebaiactMap[skuName.StoreID][v.SkuID]
|
||||||
if ebaiact != nil {
|
if ebaiact != nil {
|
||||||
v.ActPrice = int(jxutils.StandardPrice2Int(ebaiact.ActPrice))
|
v.ActPrice = int(jxutils.StandardPrice2Int(ebaiact.ActPrice))
|
||||||
@@ -1532,14 +1533,16 @@ func UpdateActPrice4StoreSkuNameNew(db *DaoDB, storeIDs, skuIDs []int, skuNamesI
|
|||||||
}
|
}
|
||||||
|
|
||||||
if actVendorMap[model.VendorIDEBAI] == nil {
|
if actVendorMap[model.VendorIDEBAI] == nil {
|
||||||
if ebaiactMap != nil {
|
if len(ebaiactMap) > 0 {
|
||||||
ebaiact := ebaiactMap[skuName.StoreID][v.SkuID]
|
ebaiact := ebaiactMap[skuName.StoreID][v.SkuID]
|
||||||
v.VendorActMaps = append(v.VendorActMaps, &VendorActMap{
|
if ebaiact != nil {
|
||||||
ActID: ebaiact.ActID,
|
v.VendorActMaps = append(v.VendorActMaps, &VendorActMap{
|
||||||
ActType: model.ActSkuDirectDown,
|
ActID: ebaiact.ActID,
|
||||||
ActPrice: int(jxutils.StandardPrice2Int(ebaiact.ActPrice)),
|
ActType: model.ActSkuDirectDown,
|
||||||
VendorID: model.VendorIDEBAI,
|
ActPrice: int(jxutils.StandardPrice2Int(ebaiact.ActPrice)),
|
||||||
})
|
VendorID: model.VendorIDEBAI,
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user