Преглед изворни кода

统计订单需要判断状态,已支付

lcl пре 1 година
родитељ
комит
6ccd71fc3e
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      AppStart/Helper/StatService.cs

+ 1 - 1
AppStart/Helper/StatService.cs

@@ -46,7 +46,7 @@ namespace MySystem
                 try
                 {
                     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)
                     {
                         string ids = "";