Commit 5cf346ee authored by 黄奎's avatar 黄奎

统计修改

parent 27e6dbe3
......@@ -360,7 +360,7 @@ GROUP By B.FXGradeId,C.GradeName ", where);
}
StringBuilder builder = new StringBuilder();
builder.AppendFormat(@"
SELECT B.FXGradeId,C.GradeName,COUNT(1) AS UserCount,DATE_FORMAT(A.CreateDate,'%Y-%m-%d') AS TimeStr
SELECT B.FXGradeId,C.GradeName,COUNT(1) AS UserCount
FROM rb_member_user AS A LEFT JOIN rb_distributor_info AS B ON A.Id=B.UserId
LEFT JOIN rb_distributor_fxgrade AS C ON B.FXGradeId=C.Grade
WHERE B.`Status`=0 {0} AND DATE_FORMAT(A.CreateDate,'%Y-%m-%d')='{1}'
......@@ -422,7 +422,7 @@ GROUP By B.FXGradeId,C.GradeName ", where, DateTime.Now.ToString("yyyy-MM-dd"));
SELECT B.FXGradeId,C.GradeName,COUNT(1) AS UserCount,DATE_FORMAT(A.CreateDate,'%Y-%m-%d') AS TimeStr
FROM rb_member_user AS A LEFT JOIN rb_distributor_info AS B ON A.Id=B.UserId
LEFT JOIN rb_distributor_fxgrade AS C ON B.FXGradeId=C.Grade
WHERE B.`Status`=0 {0}
WHERE A.Id>19 AND B.`Status`=0 {0}
GROUP By B.FXGradeId,C.GradeName,DATE_FORMAT(A.CreateDate,'%Y%m%d')
", where);
List<object> resultList = new List<object>();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment