极客西瓜月卡自动优惠券

This commit is contained in:
“wanyongkang”
2021-04-13 14:37:10 +08:00
parent 6fa6ce18d2
commit 9c92fe06e7
6 changed files with 61 additions and 10 deletions

View File

@@ -258,6 +258,9 @@ FROM product_order where {where} GROUP BY Channel,ProductName order by Channel,
var is_user_price = true;
var price = packageEntity.Price;
if(packageEntity.Id == 64||packageEntity.Id==1004){
price = 52.8M;
}
var userPrice = await this.m_ProductUserPriceService.Query(true).FirstOrDefaultAsync(m => m.UserId == userId && m.PackageId == packageEntity.Id && m.Status == 1);
if (userPrice != null && userPrice.UserPrice > 0)
{
@@ -372,7 +375,7 @@ FROM product_order where {where} GROUP BY Channel,ProductName order by Channel,
var userEntity = await m_UserService.GetById(order.UserId);
//使用优惠券
var couponAmount = 0m;
if (order.CouponId > 0)
if (order.CouponId > 0 && order.CouponId != 10000000)
{
var currentCoupon = await m_CouponService.GetOneUserAvailableCoupon(userEntity.Id, order.CouponId.Value);
if(currentCoupon.Coupon.Id<16 ){