소스 검색

优化时间日志查询

Li 3 년 전
부모
커밋
d9493dbbd0
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      TEAMModelBI/Controllers/OperateRecord/OperateLogController.cs

+ 2 - 2
TEAMModelBI/Controllers/OperateRecord/OperateLogController.cs

@@ -52,9 +52,9 @@ namespace TEAMModelBI.Controllers.OperateRecord
                 if (!string.IsNullOrEmpty($"{single}"))
                 if (!string.IsNullOrEmpty($"{single}"))
                     tableSql.Append($" time eq {single}L ");
                     tableSql.Append($" time eq {single}L ");
                 if (!string.IsNullOrEmpty($"{startDate}"))
                 if (!string.IsNullOrEmpty($"{startDate}"))
-                    tableSql.Append(!string.IsNullOrEmpty(tableSql.ToString()) ? $" and time le {startDate}L " : $"time le {startDate}L ");
+                    tableSql.Append(!string.IsNullOrEmpty(tableSql.ToString()) ? $" and time ge {startDate}L " : $"time ge {startDate}L ");
                 if (!string.IsNullOrEmpty($"{endDate}"))
                 if (!string.IsNullOrEmpty($"{endDate}"))
-                    tableSql.Append(!string.IsNullOrEmpty(tableSql.ToString()) ? $" and time ge {endDate}L " : $" time ge {endDate}L ");
+                    tableSql.Append(!string.IsNullOrEmpty(tableSql.ToString()) ? $" and time le {endDate}L " : $" time le {endDate}L ");
                 if (!string.IsNullOrEmpty($"{platform}"))
                 if (!string.IsNullOrEmpty($"{platform}"))
                     tableSql.Append(!string.IsNullOrEmpty(tableSql.ToString()) ? $" and platform eq '{platform}' " : $" platform eq '{platform}' ");
                     tableSql.Append(!string.IsNullOrEmpty(tableSql.ToString()) ? $" and platform eq '{platform}' " : $" platform eq '{platform}' ");