cqp 3 tháng trước cách đây
mục cha
commit
628edcbd92
1 tập tin đã thay đổi với 8 bổ sung0 xóa
  1. 8 0
      app/Service/ImportService.php

+ 8 - 0
app/Service/ImportService.php

@@ -2842,6 +2842,10 @@ class ImportService extends Service
 
         $allDates = array_unique($allDates);
 
+        // 使用日期范围限制
+        list($status, $msg) = MiddleGroundService::checkTimestampInRange($allDates, $user['top_depart_id']);
+        if(! $status) return [false, $msg];
+
         //归档
         list($status, $msg) = ArchiveService::isArchive($allDates, $user);
         if(! $status)  return [$msg, [], [], []];
@@ -3114,6 +3118,10 @@ class ImportService extends Service
 
         $allDates = array_unique($allDates);
 
+        // 使用日期范围限制
+        list($status, $msg) = MiddleGroundService::checkTimestampInRange($allDates, $user['top_depart_id']);
+        if(! $status) return [false, $msg];
+
         //归档
         list($status, $msg) = ArchiveService::isArchive($allDates, $user);
         if(! $status)  return [$msg, [], [], []];