|
@@ -46,7 +46,7 @@ namespace MySystem
|
|
|
try
|
|
try
|
|
|
{
|
|
{
|
|
|
string start = DateTime.Now.AddDays(-10).ToString("yyyy-MM-dd HH:mm:ss");
|
|
string start = DateTime.Now.AddDays(-10).ToString("yyyy-MM-dd HH:mm:ss");
|
|
|
- DataTable idsDt = OtherMySqlConn.dtable("select Id from ConsumerOrders where CreateDate>=" + start + " and Version=0 order by Id limit 50");
|
|
|
|
|
|
|
+ DataTable idsDt = OtherMySqlConn.dtable("select Id from ConsumerOrders where CreateDate>='" + start + "' and Status>0 and Version=0 order by Id limit 50");
|
|
|
if(idsDt.Rows.Count > 0)
|
|
if(idsDt.Rows.Count > 0)
|
|
|
{
|
|
{
|
|
|
string ids = "";
|
|
string ids = "";
|