浏览代码

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

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 = "";