stringwhere=" where a.`Status`=0 and a.PickupCenter=1";
stringwhere=" where a.`Status`=0 and a.PickupCenter=1 and (a.TotalNum=-1 or a.TotalNum>0)";
stringuserWhere="";//分类
stringuserWhere="";//分类
if(query!=null)
if(query!=null)
{
{
...
@@ -234,10 +234,10 @@ SELECT a.ID as MemberCouponId,a.UserId,b.`Name`,b.CouponType,b.UseType,b.MinCons
...
@@ -234,10 +234,10 @@ SELECT a.ID as MemberCouponId,a.UserId,b.`Name`,b.CouponType,b.UseType,b.MinCons
where+=$" AND a.{nameof(RB_Education_Coupon_Extend.SmallShopId)}=0";
where+=$" AND a.{nameof(RB_Education_Coupon_Extend.SmallShopId)}=0";
}
}
}
}
stringsql=@$" SELECT t.*,c.MemberNum from (SELECT a.ID,a.`Name`,a.`Describe`,a.CouponType,a.UseType,a.StartDate,a.EndDate,a.CouponIco,a.IndateDay,a.IndateType from {TableName} as a
stringsql=@$" SELECT t.*,c.MemberNum from (SELECT a.ID,a.`Name`,a.`Describe`,a.CouponType,a.UseType,a.StartDate,a.EndDate,a.CouponIco,a.IndateDay,a.IndateType,a.TotalNum,a.CouponIco from {TableName} as a