@@ -194,10 +194,15 @@ WHERE 1=1 AND OrderStatus>=2 AND OrderStatus<=5
...
@@ -194,10 +194,15 @@ WHERE 1=1 AND OrderStatus>=2 AND OrderStatus<=5
builder.AppendFormat(" AND A.{0}>='{1}' ",nameof(RB_Goods_Order_Extend.CreateDate),DateTime.Now.AddDays(-7).ToString("yyyy-MM-dd"));
builder.AppendFormat(" AND A.{0}>='{1}' ",nameof(RB_Goods_Order_Extend.CreateDate),DateTime.Now.AddDays(-7).ToString("yyyy-MM-dd"));
builder.AppendFormat(" AND A.{0}<='{1} 23:59:59' ",nameof(RB_Goods_Order_Extend.CreateDate),DateTime.Now.ToString("yyyy-MM-dd"));
builder.AppendFormat(" AND A.{0}<='{1} 23:59:59' ",nameof(RB_Goods_Order_Extend.CreateDate),DateTime.Now.ToString("yyyy-MM-dd"));
}
}
else
elseif(query.SalesTimeType==1)
{
{
builder.AppendFormat(" AND A.{0}>='{1}' AND A.{0}<='{1} 23:59:59' ",nameof(RB_Goods_Order_Extend.CreateDate),DateTime.Now.AddDays(-1).ToString("yyyy-MM-dd"));
builder.AppendFormat(" AND A.{0}>='{1}' AND A.{0}<='{1} 23:59:59' ",nameof(RB_Goods_Order_Extend.CreateDate),DateTime.Now.AddDays(-1).ToString("yyyy-MM-dd"));
}
}
elseif(query.SalesTimeType==0)
{
builder.AppendFormat(" AND A.{0}>='{1}' AND A.{0}<='{1} 23:59:59' ",nameof(RB_Goods_Order_Extend.CreateDate),DateTime.Now.ToString("yyyy-MM-dd"));