cqp преди 2 месеца
родител
ревизия
e535a90f6b
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 1 1
      app/Service/DeviceWorkService.php
  2. 1 1
      app/Service/PersonWorkService.php

+ 1 - 1
app/Service/DeviceWorkService.php

@@ -1191,7 +1191,7 @@ class DeviceWorkService extends Service
                 ->where('top_depart_id', $topDepartId)
                 ->where('top_depart_id', $topDepartId)
                 ->where('order_time', '>=', $monthStart)
                 ->where('order_time', '>=', $monthStart)
                 ->where('order_time', '<=', $monthEnd)
                 ->where('order_time', '<=', $monthEnd)
-                ->where('is_create', 1)
+                ->where('is_create', 0)
                 ->where('del_time', 0)->pluck('id');
                 ->where('del_time', 0)->pluck('id');
 
 
             if ($oldOrderIds->isNotEmpty()) {
             if ($oldOrderIds->isNotEmpty()) {

+ 1 - 1
app/Service/PersonWorkService.php

@@ -1247,7 +1247,7 @@ class PersonWorkService extends Service
                 ->where('top_depart_id', $topDepartId)
                 ->where('top_depart_id', $topDepartId)
                 ->where('order_time', '>=', $monthStart)
                 ->where('order_time', '>=', $monthStart)
                 ->where('order_time', '<=', $monthEnd)
                 ->where('order_time', '<=', $monthEnd)
-                ->where('is_create', 1)
+                ->where('is_create', 0)
                 ->where('del_time', 0)
                 ->where('del_time', 0)
                 ->pluck('id');
                 ->pluck('id');