cqp 1 jam lalu
induk
melakukan
628edcbd92
1 mengubah file dengan 8 tambahan dan 0 penghapusan
  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, [], [], []];