拼错了
This commit is contained in:
@@ -1531,7 +1531,7 @@ func ChangeJxPriceByDiscountAct(ctx *jxcontext.Context) {
|
||||
ActID: actStoreSku2.ActID,
|
||||
StoreID: actStoreSku2.StoreID,
|
||||
SkuID: actStoreSku2.SkuID,
|
||||
TrendPrcie: actStoreSku2.TrendPrcie,
|
||||
TrendPrice: actStoreSku2.TrendPrice,
|
||||
TrendType: actStoreSku2.TrendType,
|
||||
ActualActPrice: actStoreSku2.ActualActPrice,
|
||||
VendorPrice: actStoreSku2.VendorPrice,
|
||||
@@ -1602,8 +1602,8 @@ func ChangeJxPriceByDiscountAct(ctx *jxcontext.Context) {
|
||||
} else {
|
||||
actStoreSkuMap.TrendType = model.TrendTypeNothing
|
||||
}
|
||||
actStoreSkuMap.TrendPrcie = int(actualPrice)
|
||||
if _, err = dao.UpdateEntity(db, actStoreSkuMap, "ActualActPrice", "TrendType", "TrendPrcie"); err != nil {
|
||||
actStoreSkuMap.TrendPrice = int(actualPrice)
|
||||
if _, err = dao.UpdateEntity(db, actStoreSkuMap, "ActualActPrice", "TrendType", "TrendPrice"); err != nil {
|
||||
dao.Rollback(db)
|
||||
}
|
||||
} else { //第二档时间内
|
||||
@@ -1620,7 +1620,7 @@ func ChangeJxPriceByDiscountAct(ctx *jxcontext.Context) {
|
||||
} else {
|
||||
actStoreSkuMap.TrendType = model.TrendTypeDown
|
||||
}
|
||||
actStoreSkuMap.TrendPrcie = int(actualPrice)
|
||||
actStoreSkuMap.TrendPrice = int(actualPrice)
|
||||
// if _, err = dao.UpdateEntity(db, actStoreSkuMap, "TrendType", "TrendPrcie"); err != nil {
|
||||
// dao.Rollback(db)
|
||||
// }
|
||||
@@ -1628,7 +1628,7 @@ func ChangeJxPriceByDiscountAct(ctx *jxcontext.Context) {
|
||||
if actStoreSkuMap.ActualActPrice <= minJxPrice {
|
||||
actStoreSkuMap.ActualActPrice = minJxPrice
|
||||
}
|
||||
if _, err = dao.UpdateEntity(db, actStoreSkuMap, "ActualActPrice", "TrendType", "TrendPrcie"); err != nil {
|
||||
if _, err = dao.UpdateEntity(db, actStoreSkuMap, "ActualActPrice", "TrendType", "TrendPrice"); err != nil {
|
||||
dao.Rollback(db)
|
||||
}
|
||||
//22:00 恢复库存为100
|
||||
|
||||
Reference in New Issue
Block a user