- 去除几个误用ZeroTimeValue的地方

This commit is contained in:
gazebo
2019-07-15 17:05:58 +08:00
parent 41e0d57835
commit ff4b6098d7
3 changed files with 9 additions and 4 deletions

View File

@@ -117,7 +117,7 @@ func ActStoreSkuParam2Model(ctx *jxcontext.Context, db *dao.DaoDB, act *model.Ac
VendorID: vendorID,
SyncStatus: model.SyncFlagNewMask,
VendorPrice: int64(jxutils.CaculateSkuVendorPrice(storeSkuInfo.Price, int(storeDetail.PricePercentage), 0)),
VendorPrice: int64(jxutils.CaculateSkuVendorPrice(storeSkuInfo.Price, jxutils.GetPricePercentage(storeDetail.PricePercentagePackObj, storeSkuInfo.Price, int(storeDetail.PricePercentage)), 0)),
}
v.OriginalPrice = actSkuMap.VendorPrice
if v.ActPrice != 0 {
@@ -499,7 +499,7 @@ func (a *ActManager) IsVendorActExist(ctx *jxcontext.Context, vendorActID string
VendorActID: vendorActID,
VendorID: vendorID,
}
actMap.DeletedAt = utils.ZeroTimeValue
actMap.DeletedAt = utils.DefaultTimeValue
if err := dao.GetEntity(db, actMap, "VendorActID", "VendorID", "DeletedAt"); err == nil {
isExist = true
}