|
|
@@ -2082,6 +2082,10 @@ class ImportService extends Service
|
|
|
|
|
|
$allMonthsTs = array_unique($uniqueMonths);
|
|
|
|
|
|
+ // 使用日期范围限制
|
|
|
+ list($status, $msg) = MiddleGroundService::checkTimestampInRange($allMonthsTs, $user['top_depart_id']);
|
|
|
+ if(! $status) return [false, $msg];
|
|
|
+
|
|
|
//归档
|
|
|
list($status, $msg) = ArchiveService::isArchive($allMonthsTs, $user);
|
|
|
if(! $status) return [$msg, [], []];
|
|
|
@@ -2340,6 +2344,10 @@ class ImportService extends Service
|
|
|
|
|
|
$allMonthsTs = array_unique($uniqueMonths);
|
|
|
|
|
|
+ // 使用日期范围限制
|
|
|
+ list($status, $msg) = MiddleGroundService::checkTimestampInRange($allMonthsTs, $user['top_depart_id']);
|
|
|
+ if(! $status) return [false, $msg];
|
|
|
+
|
|
|
//归档
|
|
|
list($status, $msg) = ArchiveService::isArchive($allMonthsTs, $user);
|
|
|
if(! $status) return [$msg, [], []];
|
|
|
@@ -2553,6 +2561,10 @@ class ImportService extends Service
|
|
|
|
|
|
$allMonthsTs = array_unique($uniqueMonths);
|
|
|
|
|
|
+ // 使用日期范围限制
|
|
|
+ list($status, $msg) = MiddleGroundService::checkTimestampInRange($allMonthsTs, $user['top_depart_id']);
|
|
|
+ if(! $status) return [false, $msg];
|
|
|
+
|
|
|
//归档
|
|
|
list($status, $msg) = ArchiveService::isArchive($allMonthsTs, $user);
|
|
|
if(! $status) return [$msg, [], []];
|
|
|
@@ -3336,6 +3348,10 @@ class ImportService extends Service
|
|
|
|
|
|
$allDateTs = array_unique($allDateTs);
|
|
|
|
|
|
+ // 使用日期范围限制
|
|
|
+ list($status, $msg) = MiddleGroundService::checkTimestampInRange($allDateTs, $user['top_depart_id']);
|
|
|
+ if(! $status) return [false, $msg];
|
|
|
+
|
|
|
//归档
|
|
|
list($status, $msg) = ArchiveService::isArchive($allDateTs, $user);
|
|
|
if(! $status) return [$msg, [], []];
|
|
|
@@ -3608,6 +3624,10 @@ class ImportService extends Service
|
|
|
|
|
|
$allDateTs = array_unique($allDateTs);
|
|
|
|
|
|
+ // 使用日期范围限制
|
|
|
+ list($status, $msg) = MiddleGroundService::checkTimestampInRange($allDateTs, $user['top_depart_id']);
|
|
|
+ if(! $status) return [false, $msg];
|
|
|
+
|
|
|
//归档
|
|
|
list($status, $msg) = ArchiveService::isArchive($allDateTs, $user);
|
|
|
if(! $status) return [$msg, [], []];
|
|
|
@@ -3927,6 +3947,10 @@ class ImportService extends Service
|
|
|
|
|
|
$allMonthsTs = array_unique($allMonthsTs);
|
|
|
|
|
|
+ // 使用日期范围限制
|
|
|
+ list($status, $msg) = MiddleGroundService::checkTimestampInRange($allMonthsTs, $user['top_depart_id']);
|
|
|
+ if(! $status) return [false, $msg];
|
|
|
+
|
|
|
//归档
|
|
|
list($status, $msg) = ArchiveService::isArchive($allMonthsTs, $user);
|
|
|
if(! $status) return [$msg, [], []];
|