stringsql=$"SELECT * FROM rb_customer_hotelorder WHERE OrderStatus in(1,2) and Income <=0 and PaymentDate <'{DateTime.Now.ToString("yyyy-MM-dd")}' and EnterID not in (2604,2739,3038,2758)";
stringsql=$"SELECT * FROM rb_customer_hotelorder WHERE OrderStatus in(1,2) and Income <=0 and ConfirmDate <'{DateTime.Now.AddDays(-7).ToString("yyyy-MM-dd")}' and RB_Group_id in({groupIds})";
@@ -140,7 +140,7 @@ where {where} order by o.OrderId desc";
...
@@ -140,7 +140,7 @@ where {where} order by o.OrderId desc";
}
}
if(!string.IsNullOrEmpty(demodel.Name))
if(!string.IsNullOrEmpty(demodel.Name))
{
{
where+=$" and (o.{nameof(RB_Customer_TicketOrder_Extend.Name)} like @Name or o.{nameof(RB_Customer_TicketOrder_Extend.EName)} like @Name)";
where+=$" and (o.{nameof(RB_Customer_TicketOrder_Extend.Name)} like @Name or o.{nameof(RB_Customer_TicketOrder_Extend.EName)} like @Name or g.Name like @Name)";
parameters.Add("Name","%"+demodel.Name+"%");
parameters.Add("Name","%"+demodel.Name+"%");
}
}
if(!string.IsNullOrEmpty(demodel.Mobile))
if(!string.IsNullOrEmpty(demodel.Mobile))
...
@@ -198,6 +198,7 @@ where {where} order by o.OrderId desc";
...
@@ -198,6 +198,7 @@ where {where} order by o.OrderId desc";
left join rb_ticketcoupons t on o.CouponsId = t.ID
left join rb_ticketcoupons t on o.CouponsId = t.ID
left join RB_Customer_TicketOrderDetail d on o.OrderId = d.OrderId
left join RB_Customer_TicketOrderDetail d on o.OrderId = d.OrderId
{((userInfo?.SimpleEasy??0)==1?(" left JOIN rb_appoint_op aop on aop.OrderId=o.OrderId and aop.ResourceType="+(int)Common.Enum.ResourceTypeEnum.TicketCoupons):"")}
{((userInfo?.SimpleEasy??0)==1?(" left JOIN rb_appoint_op aop on aop.OrderId=o.OrderId and aop.ResourceType="+(int)Common.Enum.ResourceTypeEnum.TicketCoupons):"")}
{(!string.IsNullOrEmpty(demodel.Name)?" left join rb_travel_guest g on o.OrderId=g.OrderId and g.IsAllograph=4 and g.Status=0":"")}
where {where} group by o.OrderId order by o.OrderId desc";
where {where} group by o.OrderId order by o.OrderId desc";
varpageList=GetPage<RB_Group_Extend>(pageIndex,pageSize,outcount,"select g.*,v.VersionsName from Rb_group g Left join Rb_sys_versions v on g.Versions_Id=v.Id "+where).ToList();
varpageList=GetPage<RB_Group_Extend>(pageIndex,pageSize,outcount,"select g.*,v.VersionsName from Rb_group g Left join Rb_sys_versions v on g.Versions_Id=v.Id "+where).ToList();