소스 검색

部分代码修改

yuanrf 10 달 전
부모
커밋
b2e3624890
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      OASystem/OASystem.Infrastructure/Repositories/Groups/CarTouristGuideGroundRepository.cs

+ 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;
                 }