|
@@ -517,10 +517,15 @@ func getSubtotalPrice(oldBuyset, newBuyset *entity.SubvipBuySet, startTime, endt
|
|
|
if monthNum != 0 {
|
|
|
beforePrice += entity.JyVipSubStruct.GetSubVipPriceByBuySet(oldBuyset, monthNum, 2, false)
|
|
|
newPrice += entity.JyVipSubStruct.GetSubVipPriceByBuySet(newBuyset, monthNum, 2, false)
|
|
|
+ log.Println("monthNum beforePrice", entity.JyVipSubStruct.GetSubVipPriceByBuySet(oldBuyset, monthNum, 2, false))
|
|
|
+ log.Println("monthNum newPrice", entity.JyVipSubStruct.GetSubVipPriceByBuySet(newBuyset, monthNum, 2, false))
|
|
|
}
|
|
|
if yearNum != 0 {
|
|
|
beforePrice += entity.JyVipSubStruct.GetSubVipPriceByBuySet(oldBuyset, yearNum, 1, false)
|
|
|
newPrice += entity.JyVipSubStruct.GetSubVipPriceByBuySet(newBuyset, yearNum, 1, false)
|
|
|
+
|
|
|
+ log.Println("yearNum beforePrice", entity.JyVipSubStruct.GetSubVipPriceByBuySet(oldBuyset, yearNum, 1, false))
|
|
|
+ log.Println("newPrice newPrice", entity.JyVipSubStruct.GetSubVipPriceByBuySet(newBuyset, yearNum, 1, false))
|
|
|
}
|
|
|
log.Printf("old %+v \n new %+v \n %d-%d 相差%d年 %d个月\n price: %d-%d=%d \n", oldBuyset, newBuyset, startTime, endtime, yearNum, monthNum, newPrice, beforePrice, newPrice-beforePrice)
|
|
|
return newPrice - beforePrice
|