cqp 2 месяцев назад
Родитель
Сommit
7386118aa3

+ 5 - 5
app/Service/CalendarService.php

@@ -95,11 +95,11 @@ class CalendarService extends Service
             'details' => $unit,
         ];
 
-        foreach ($detail as $key => $value) {
-            if (empty($value)) {
-                $detail[$key] = (object)[]; // 转成 stdClass 对象
-            }
-        }
+        //foreach ($detail as $key => $value) {
+           // if (empty($value)) {
+                //$detail[$key] = (object)[]; // 转成 stdClass 对象
+            //}
+        //}
 
         return $detail;
     }

+ 5 - 5
app/Service/DeviceDepreciationService.php

@@ -104,11 +104,11 @@ class DeviceDepreciationService extends Service
             'details' => $data,
         ];
 
-        foreach ($detail as $key => $value) {
-            if (empty($value)) {
-                $detail[$key] = (object)[]; // 转成 stdClass 对象
-            }
-        }
+        //foreach ($detail as $key => $value) {
+           // if (empty($value)) {
+                //$detail[$key] = (object)[]; // 转成 stdClass 对象
+            //}
+        //}
 
         return $detail;
     }

+ 10 - 10
app/Service/DeviceWorkService.php

@@ -114,11 +114,11 @@ class DeviceWorkService extends Service
             'details' => $data,
         ];
 
-        foreach ($detail as $key => $value) {
-            if (empty($value)) {
-                $detail[$key] = (object)[]; // 转成 stdClass 对象
-            }
-        }
+        //foreach ($detail as $key => $value) {
+           // if (empty($value)) {
+                //$detail[$key] = (object)[]; // 转成 stdClass 对象
+            //}
+        //}
 
         return $detail;
     }
@@ -507,11 +507,11 @@ class DeviceWorkService extends Service
             'details' => $data,
         ];
 
-        foreach ($detail as $key => $value) {
-            if (empty($value)) {
-                $detail[$key] = (object)[]; // 转成 stdClass 对象
-            }
-        }
+        //foreach ($detail as $key => $value) {
+           // if (empty($value)) {
+                //$detail[$key] = (object)[]; // 转成 stdClass 对象
+            //}
+        //}
 
         return $detail;
     }

+ 5 - 5
app/Service/ItemService.php

@@ -144,11 +144,11 @@ class ItemService extends Service
             'device_list' => $receipt,
         ];
 
-//        foreach ($detail as $key => $value) {
-//            if (empty($value)) {
-//                $detail[$key] = (object)[]; // 转成 stdClass 对象
-//            }
-//        }
+        //foreach ($detail as $key => $value) {
+           // if (empty($value)) {
+                //$detail[$key] = (object)[]; // 转成 stdClass 对象
+            //}
+        //}
 
         return $detail;
     }

+ 5 - 5
app/Service/PLeaveOverService.php

@@ -113,11 +113,11 @@ class PLeaveOverService extends Service
             'details' => $data,
         ];
 
-        foreach ($detail as $key => $value) {
-            if (empty($value)) {
-                $detail[$key] = (object)[]; // 转成 stdClass 对象
-            }
-        }
+        //foreach ($detail as $key => $value) {
+           // if (empty($value)) {
+                //$detail[$key] = (object)[]; // 转成 stdClass 对象
+            //}
+        //}
 
         return $detail;
     }

+ 5 - 5
app/Service/PersonSalaryService.php

@@ -104,11 +104,11 @@ class PersonSalaryService extends Service
             'details' => $data,
         ];
 
-        foreach ($detail as $key => $value) {
-            if (empty($value)) {
-                $detail[$key] = (object)[]; // 转成 stdClass 对象
-            }
-        }
+        //foreach ($detail as $key => $value) {
+           // if (empty($value)) {
+                //$detail[$key] = (object)[]; // 转成 stdClass 对象
+            //}
+        //}
 
         return $detail;
     }

+ 10 - 10
app/Service/PersonWorkService.php

@@ -113,11 +113,11 @@ class PersonWorkService extends Service
             'details' => $data,
         ];
 
-        foreach ($detail as $key => $value) {
-            if (empty($value)) {
-                $detail[$key] = (object)[]; // 转成 stdClass 对象
-            }
-        }
+        //foreach ($detail as $key => $value) {
+           // if (empty($value)) {
+                //$detail[$key] = (object)[]; // 转成 stdClass 对象
+            //}
+        //}
 
         return $detail;
     }
@@ -489,11 +489,11 @@ class PersonWorkService extends Service
             'details' => $data,
         ];
 
-        foreach ($detail as $key => $value) {
-            if (empty($value)) {
-                $detail[$key] = (object)[]; // 转成 stdClass 对象
-            }
-        }
+        //foreach ($detail as $key => $value) {
+           // if (empty($value)) {
+                //$detail[$key] = (object)[]; // 转成 stdClass 对象
+            //}
+        //}
 
         return $detail;
     }

+ 5 - 5
app/Service/RuleSetService.php

@@ -159,11 +159,11 @@ class RuleSetService extends Service
             'device_list' => $receipt,
         ];
 
-        foreach ($detail as $key => $value) {
-            if (empty($value)) {
-                $detail[$key] = (object)[]; // 转成 stdClass 对象
-            }
-        }
+        //foreach ($detail as $key => $value) {
+           // if (empty($value)) {
+                //$detail[$key] = (object)[]; // 转成 stdClass 对象
+            //}
+        //}
 
         return $detail;
     }