Browse Source

更新查询条件以使用访问时间

在 `GroupsController.cs` 文件中(GroupListFile),修改了查询的排序条件和时间范围。将排序依据从 `gdi.CreateTime Desc` 改为 `gdi.VisitDate Desc`,同时将 WHERE 子句中的时间范围条件也从 `gdi.CreateTime` 修改为 `gdi.VisitDate`。这使得查询更加准确地反映访问时间。
LEIYI 1 week ago
parent
commit
55887153dd
1 changed files with 2 additions and 2 deletions
  1. 2 2
      OASystem/OASystem.Api/Controllers/GroupsController.cs

+ 2 - 2
OASystem/OASystem.Api/Controllers/GroupsController.cs

@@ -1768,7 +1768,7 @@ FROM
     SELECT
       ROW_NUMBER() OVER(
         ORDER BY
-          gdi.CreateTime Desc
+          gdi.VisitDate Desc
       ) AS ROW_NUMBER,
       gdi.Id,
       SalesQuoteNo,
@@ -1798,7 +1798,7 @@ FROM
     WHERE
       gdi.IsDel = 0
       AND gdi.IsBid = 0
-      AND gdi.CreateTime BETWEEN '{0}' AND '{1}'
+      AND gdi.VisitDate BETWEEN '{0}' AND '{1}'
   ) temp", _beginDt.ToString("yyyy-MM-dd HH:mm:ss"), _endDt.ToString("yyyy-MM-dd HH:mm:ss"));