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

+ 2 - 2
app/Service/QuantizationService.php

@@ -576,8 +576,8 @@ class QuantizationService extends Service
                     ->where('type', QuantizationCreate::type_two)
                     ->where('del_time', 0)
                     ->where(function($query) use ($startTime, $endTime) {
-                        $query->where('start', '<=', $endTime)
-                            ->where('end', '>=', $startTime);
+                        $query->where('start_time', '<=', $endTime)
+                            ->where('end_time', '>=', $startTime);
                     })
                     ->where('id', '<>', $id)
                     ->exists();