Li 3 роки тому
батько
коміт
d9493dbbd0

+ 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}' ");