Browse Source

部分代码修改

yuanrf 6 months ago
parent
commit
b2e3624890

+ 2 - 2
OASystem/OASystem.Infrastructure/Repositories/Groups/CarTouristGuideGroundRepository.cs

@@ -160,9 +160,9 @@ namespace OASystem.Infrastructure.Repositories.Groups
                     return result;
                 }
 
-                if (!(DateTime.Compare(start,end) < 0))
+                if (DateTime.Compare(end, start) < 0)
                 {
-                    result.Msg = "服务时间区间有误!开始时间应小于结束时间!";
+                    result.Msg = "服务时间区间有误!结束时间不应该小于开始时间!";
                     result.Code = -1;
                     return result;
                 }