소스 검색

代码提交

tangdi 2 년 전
부모
커밋
3a33c5a6be
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      MicroServices/Business/Business.Application/ResourceExamineManagement/ResourceExamineAppService.cs

+ 3 - 3
MicroServices/Business/Business.Application/ResourceExamineManagement/ResourceExamineAppService.cs

@@ -1188,7 +1188,7 @@ namespace Business.ResourceExamineManagement
                         toTime = toTime.AddDays(-7);
                         break;
                     default:
-                        toTime = toTime.AddDays(dayOfWeek - 1);
+                        toTime = toTime.AddDays(-dayOfWeek);
                         break;
                 }
                 DateTime starttime = toTime.Date.AddDays(1);
@@ -1378,7 +1378,7 @@ namespace Business.ResourceExamineManagement
                     toTime = toTime.AddDays(-7);
                     break;
                 default:
-                    toTime = toTime.AddDays(dayOfWeek - 1);
+                    toTime = toTime.AddDays(-dayOfWeek);
                     break;
             }
             DateTime starttime = toTime.Date.AddDays(1);
@@ -1510,7 +1510,7 @@ namespace Business.ResourceExamineManagement
                     toTime = toTime.AddDays(-7);
                     break;
                 default:
-                    toTime = toTime.AddDays(dayOfWeek - 1);
+                    toTime = toTime.AddDays(-dayOfWeek);
                     break;
             }
             DateTime starttime = toTime.Date.AddDays(1);