Commit 8a4e5cdb authored by 吴春's avatar 吴春

提交代码

parent 9d01104c
...@@ -928,7 +928,7 @@ namespace Mall.Module.MarketingCenter ...@@ -928,7 +928,7 @@ namespace Mall.Module.MarketingCenter
MaxDiscountsPrice = item.MaxDiscountsPrice, MaxDiscountsPrice = item.MaxDiscountsPrice,
CouponType = item.CouponType, CouponType = item.CouponType,
Name = item.Name, Name = item.Name,
KeyWord=item.KeyWord KeyWord = item.KeyWord
}; };
isReceive = memberCouponRepository.Insert(nowMemberCoupon, trans) > 0; isReceive = memberCouponRepository.Insert(nowMemberCoupon, trans) > 0;
......
...@@ -356,11 +356,11 @@ on a.CouponId=b.ID {where} "; ...@@ -356,11 +356,11 @@ on a.CouponId=b.ID {where} ";
} }
} }
string sql = @$"SELECT a.*,b.TriggerType,b.GrantNum from rb_coupon_selfmotion as b LEFT JOIN {TableName} as a on a.ID=b.DiscountCouponId string sql = @$"SELECT a.*,b.TriggerType,b.GrantNum,b.KeyWord from rb_coupon_selfmotion as b LEFT JOIN {TableName} as a on a.ID=b.DiscountCouponId
where (a.IndateType=1 or (a.IndateType=2 and a.EndDate>NOW())) where (a.IndateType=1 or (a.IndateType=2 and a.EndDate>NOW()))
and a.`Status`=0 and b.`Status`=0 and IsAll=0 {builder.ToString()} and a.`Status`=0 and b.`Status`=0 and IsAll=0 {builder.ToString()}
UNION ALL UNION ALL
SELECT a.*,b.TriggerType,b.GrantNum from rb_coupon_selfmotion as b LEFT JOIN rb_discountcoupon as a on a.ID=b.DiscountCouponId SELECT a.*,b.TriggerType,b.GrantNum,b.KeyWord from rb_coupon_selfmotion as b LEFT JOIN rb_discountcoupon as a on a.ID=b.DiscountCouponId
LEFT JOIN rb_coupon_selfmotionmember as c on c.SelfMotionId=b.ID LEFT JOIN rb_coupon_selfmotionmember as c on c.SelfMotionId=b.ID
where (a.IndateType=1 or (a.IndateType=2 and a.EndDate>NOW())) {builder.ToString()} where (a.IndateType=1 or (a.IndateType=2 and a.EndDate>NOW())) {builder.ToString()}
and a.`Status`=0 and b.`Status`=0 and IsAll=1 {userWhere} "; and a.`Status`=0 and b.`Status`=0 and IsAll=1 {userWhere} ";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment