极客西瓜月卡自动优惠券
This commit is contained in:
@@ -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 ){
|
||||
|
||||
Reference in New Issue
Block a user