aa
This commit is contained in:
@@ -2090,8 +2090,11 @@ func RrefreshEbaiVendorAct(ctx *jxcontext.Context) (err error) {
|
||||
`
|
||||
sqlParams := []interface{}{storeMap.StoreID, sku.Skuid}
|
||||
if err = dao.GetRow(db, &storeSkuBind, sql, sqlParams); err == nil && storeSkuBind != nil {
|
||||
actVendorSku.SkuID = storeSkuBind.SkuID
|
||||
actVendorSku.OriginPrice = jxutils.IntPrice2Standard(int64(storeSkuBind.Price))
|
||||
if actSkus, _ := dao.GetEffectiveActStoreSkuInfo(db, 0, []int{model.VendorIDMTWM}, model.ActTypeAll, []int{storeMap.StoreID},
|
||||
[]int{storeSkuBind.SkuID}, utils.Timestamp2Time(result.Starttime), utils.Timestamp2Time(result.Endtime)); len(actSkus) == 0 {
|
||||
actVendorSku.SkuID = storeSkuBind.SkuID
|
||||
actVendorSku.OriginPrice = jxutils.IntPrice2Standard(int64(storeSkuBind.Price))
|
||||
}
|
||||
}
|
||||
dao.CreateEntity(db, actVendorSku)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user