Skip to content

Commit

Permalink
修复 whereNotBetweenTime 逻辑错误
Browse files Browse the repository at this point in the history
  • Loading branch information
Nzzz964 authored and liu21st committed Nov 30, 2021
1 parent 40f3848 commit 3dcf9af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/db/concern/TimeFieldQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public function whereBetweenTime(string $field, $startTime, $endTime, string $lo
public function whereNotBetweenTime(string $field, $startTime, $endTime)
{
return $this->whereTime($field, '<', $startTime)
->whereTime($field, '>', $endTime);
->whereTime($field, '>', $endTime, 'OR');
}

/**
Expand Down

0 comments on commit 3dcf9af

Please sign in to comment.